use mtdb
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE
GO

CREATE TABLE OBJ_STORE
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE_USTR_UNIQUE_1 ON OBJ_STORE (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_UNUM_UNIQUE_1 ON OBJ_STORE (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_UTS_UNIQUE_1 ON OBJ_STORE (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_UDBL_UNIQUE_1 ON OBJ_STORE (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_USTR_UNIQUE_2 ON OBJ_STORE (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_UNUM_UNIQUE_2 ON OBJ_STORE (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_UTS_UNIQUE_2 ON OBJ_STORE (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE_UDBL_UNIQUE_2 ON OBJ_STORE (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_1 ON OBJ_STORE (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_2 ON OBJ_STORE (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE_INUM_INDEX_1 ON OBJ_STORE (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE_ITS_INDEX_1 ON OBJ_STORE (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE_IDBL_INDEX_1 ON OBJ_STORE (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_3 ON OBJ_STORE (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_4 ON OBJ_STORE (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE_INUM_INDEX_2 ON OBJ_STORE (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE_ITS_INDEX_2 ON OBJ_STORE (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE_IDBL_INDEX_2 ON OBJ_STORE (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_5 ON OBJ_STORE (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_6 ON OBJ_STORE (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE_INUM_INDEX_3 ON OBJ_STORE (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE_ITS_INDEX_3 ON OBJ_STORE (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE_IDBL_INDEX_3 ON OBJ_STORE (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_7 ON OBJ_STORE (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE_ISTR_INDEX_8 ON OBJ_STORE (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE_INUM_INDEX_4 ON OBJ_STORE (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE_ITS_INDEX_4 ON OBJ_STORE (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE_IDBL_INDEX_4 ON OBJ_STORE (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE_CRE_USER_INDEX ON OBJ_STORE (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__1
GO

CREATE TABLE OBJ_STORE__1
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__1_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__1_USTR_UNIQUE_1 ON OBJ_STORE__1 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_UNUM_UNIQUE_1 ON OBJ_STORE__1 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_UTS_UNIQUE_1 ON OBJ_STORE__1 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_UDBL_UNIQUE_1 ON OBJ_STORE__1 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_USTR_UNIQUE_2 ON OBJ_STORE__1 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_UNUM_UNIQUE_2 ON OBJ_STORE__1 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_UTS_UNIQUE_2 ON OBJ_STORE__1 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__1_UDBL_UNIQUE_2 ON OBJ_STORE__1 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_1 ON OBJ_STORE__1 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_2 ON OBJ_STORE__1 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__1_INUM_INDEX_1 ON OBJ_STORE__1 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__1_ITS_INDEX_1 ON OBJ_STORE__1 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__1_IDBL_INDEX_1 ON OBJ_STORE__1 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_3 ON OBJ_STORE__1 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_4 ON OBJ_STORE__1 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__1_INUM_INDEX_2 ON OBJ_STORE__1 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__1_ITS_INDEX_2 ON OBJ_STORE__1 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__1_IDBL_INDEX_2 ON OBJ_STORE__1 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_5 ON OBJ_STORE__1 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_6 ON OBJ_STORE__1 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__1_INUM_INDEX_3 ON OBJ_STORE__1 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__1_ITS_INDEX_3 ON OBJ_STORE__1 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__1_IDBL_INDEX_3 ON OBJ_STORE__1 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_7 ON OBJ_STORE__1 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__1_ISTR_INDEX_8 ON OBJ_STORE__1 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__1_INUM_INDEX_4 ON OBJ_STORE__1 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__1_ITS_INDEX_4 ON OBJ_STORE__1 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__1_IDBL_INDEX_4 ON OBJ_STORE__1 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__1_CRE_USER_INDEX ON OBJ_STORE__1 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__2
GO

CREATE TABLE OBJ_STORE__2
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__2_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__2_USTR_UNIQUE_1 ON OBJ_STORE__2 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_UNUM_UNIQUE_1 ON OBJ_STORE__2 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_UTS_UNIQUE_1 ON OBJ_STORE__2 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_UDBL_UNIQUE_1 ON OBJ_STORE__2 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_USTR_UNIQUE_2 ON OBJ_STORE__2 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_UNUM_UNIQUE_2 ON OBJ_STORE__2 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_UTS_UNIQUE_2 ON OBJ_STORE__2 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__2_UDBL_UNIQUE_2 ON OBJ_STORE__2 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_1 ON OBJ_STORE__2 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_2 ON OBJ_STORE__2 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__2_INUM_INDEX_1 ON OBJ_STORE__2 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__2_ITS_INDEX_1 ON OBJ_STORE__2 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__2_IDBL_INDEX_1 ON OBJ_STORE__2 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_3 ON OBJ_STORE__2 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_4 ON OBJ_STORE__2 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__2_INUM_INDEX_2 ON OBJ_STORE__2 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__2_ITS_INDEX_2 ON OBJ_STORE__2 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__2_IDBL_INDEX_2 ON OBJ_STORE__2 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_5 ON OBJ_STORE__2 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_6 ON OBJ_STORE__2 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__2_INUM_INDEX_3 ON OBJ_STORE__2 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__2_ITS_INDEX_3 ON OBJ_STORE__2 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__2_IDBL_INDEX_3 ON OBJ_STORE__2 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_7 ON OBJ_STORE__2 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__2_ISTR_INDEX_8 ON OBJ_STORE__2 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__2_INUM_INDEX_4 ON OBJ_STORE__2 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__2_ITS_INDEX_4 ON OBJ_STORE__2 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__2_IDBL_INDEX_4 ON OBJ_STORE__2 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__2_CRE_USER_INDEX ON OBJ_STORE__2 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__3
GO

CREATE TABLE OBJ_STORE__3
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__3_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__3_USTR_UNIQUE_1 ON OBJ_STORE__3 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_UNUM_UNIQUE_1 ON OBJ_STORE__3 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_UTS_UNIQUE_1 ON OBJ_STORE__3 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_UDBL_UNIQUE_1 ON OBJ_STORE__3 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_USTR_UNIQUE_2 ON OBJ_STORE__3 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_UNUM_UNIQUE_2 ON OBJ_STORE__3 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_UTS_UNIQUE_2 ON OBJ_STORE__3 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__3_UDBL_UNIQUE_2 ON OBJ_STORE__3 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_1 ON OBJ_STORE__3 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_2 ON OBJ_STORE__3 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__3_INUM_INDEX_1 ON OBJ_STORE__3 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__3_ITS_INDEX_1 ON OBJ_STORE__3 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__3_IDBL_INDEX_1 ON OBJ_STORE__3 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_3 ON OBJ_STORE__3 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_4 ON OBJ_STORE__3 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__3_INUM_INDEX_2 ON OBJ_STORE__3 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__3_ITS_INDEX_2 ON OBJ_STORE__3 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__3_IDBL_INDEX_2 ON OBJ_STORE__3 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_5 ON OBJ_STORE__3 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_6 ON OBJ_STORE__3 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__3_INUM_INDEX_3 ON OBJ_STORE__3 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__3_ITS_INDEX_3 ON OBJ_STORE__3 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__3_IDBL_INDEX_3 ON OBJ_STORE__3 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_7 ON OBJ_STORE__3 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__3_ISTR_INDEX_8 ON OBJ_STORE__3 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__3_INUM_INDEX_4 ON OBJ_STORE__3 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__3_ITS_INDEX_4 ON OBJ_STORE__3 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__3_IDBL_INDEX_4 ON OBJ_STORE__3 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__3_CRE_USER_INDEX ON OBJ_STORE__3 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__4
GO

CREATE TABLE OBJ_STORE__4
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__4_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__4_USTR_UNIQUE_1 ON OBJ_STORE__4 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_UNUM_UNIQUE_1 ON OBJ_STORE__4 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_UTS_UNIQUE_1 ON OBJ_STORE__4 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_UDBL_UNIQUE_1 ON OBJ_STORE__4 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_USTR_UNIQUE_2 ON OBJ_STORE__4 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_UNUM_UNIQUE_2 ON OBJ_STORE__4 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_UTS_UNIQUE_2 ON OBJ_STORE__4 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__4_UDBL_UNIQUE_2 ON OBJ_STORE__4 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_1 ON OBJ_STORE__4 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_2 ON OBJ_STORE__4 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__4_INUM_INDEX_1 ON OBJ_STORE__4 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__4_ITS_INDEX_1 ON OBJ_STORE__4 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__4_IDBL_INDEX_1 ON OBJ_STORE__4 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_3 ON OBJ_STORE__4 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_4 ON OBJ_STORE__4 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__4_INUM_INDEX_2 ON OBJ_STORE__4 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__4_ITS_INDEX_2 ON OBJ_STORE__4 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__4_IDBL_INDEX_2 ON OBJ_STORE__4 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_5 ON OBJ_STORE__4 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_6 ON OBJ_STORE__4 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__4_INUM_INDEX_3 ON OBJ_STORE__4 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__4_ITS_INDEX_3 ON OBJ_STORE__4 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__4_IDBL_INDEX_3 ON OBJ_STORE__4 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_7 ON OBJ_STORE__4 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__4_ISTR_INDEX_8 ON OBJ_STORE__4 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__4_INUM_INDEX_4 ON OBJ_STORE__4 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__4_ITS_INDEX_4 ON OBJ_STORE__4 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__4_IDBL_INDEX_4 ON OBJ_STORE__4 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__4_CRE_USER_INDEX ON OBJ_STORE__4 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__5
GO

CREATE TABLE OBJ_STORE__5
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__5_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__5_USTR_UNIQUE_1 ON OBJ_STORE__5 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_UNUM_UNIQUE_1 ON OBJ_STORE__5 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_UTS_UNIQUE_1 ON OBJ_STORE__5 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_UDBL_UNIQUE_1 ON OBJ_STORE__5 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_USTR_UNIQUE_2 ON OBJ_STORE__5 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_UNUM_UNIQUE_2 ON OBJ_STORE__5 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_UTS_UNIQUE_2 ON OBJ_STORE__5 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__5_UDBL_UNIQUE_2 ON OBJ_STORE__5 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_1 ON OBJ_STORE__5 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_2 ON OBJ_STORE__5 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__5_INUM_INDEX_1 ON OBJ_STORE__5 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__5_ITS_INDEX_1 ON OBJ_STORE__5 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__5_IDBL_INDEX_1 ON OBJ_STORE__5 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_3 ON OBJ_STORE__5 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_4 ON OBJ_STORE__5 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__5_INUM_INDEX_2 ON OBJ_STORE__5 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__5_ITS_INDEX_2 ON OBJ_STORE__5 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__5_IDBL_INDEX_2 ON OBJ_STORE__5 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_5 ON OBJ_STORE__5 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_6 ON OBJ_STORE__5 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__5_INUM_INDEX_3 ON OBJ_STORE__5 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__5_ITS_INDEX_3 ON OBJ_STORE__5 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__5_IDBL_INDEX_3 ON OBJ_STORE__5 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_7 ON OBJ_STORE__5 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__5_ISTR_INDEX_8 ON OBJ_STORE__5 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__5_INUM_INDEX_4 ON OBJ_STORE__5 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__5_ITS_INDEX_4 ON OBJ_STORE__5 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__5_IDBL_INDEX_4 ON OBJ_STORE__5 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__5_CRE_USER_INDEX ON OBJ_STORE__5 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__6
GO

CREATE TABLE OBJ_STORE__6
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__6_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__6_USTR_UNIQUE_1 ON OBJ_STORE__6 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_UNUM_UNIQUE_1 ON OBJ_STORE__6 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_UTS_UNIQUE_1 ON OBJ_STORE__6 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_UDBL_UNIQUE_1 ON OBJ_STORE__6 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_USTR_UNIQUE_2 ON OBJ_STORE__6 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_UNUM_UNIQUE_2 ON OBJ_STORE__6 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_UTS_UNIQUE_2 ON OBJ_STORE__6 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__6_UDBL_UNIQUE_2 ON OBJ_STORE__6 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_1 ON OBJ_STORE__6 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_2 ON OBJ_STORE__6 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__6_INUM_INDEX_1 ON OBJ_STORE__6 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__6_ITS_INDEX_1 ON OBJ_STORE__6 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__6_IDBL_INDEX_1 ON OBJ_STORE__6 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_3 ON OBJ_STORE__6 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_4 ON OBJ_STORE__6 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__6_INUM_INDEX_2 ON OBJ_STORE__6 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__6_ITS_INDEX_2 ON OBJ_STORE__6 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__6_IDBL_INDEX_2 ON OBJ_STORE__6 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_5 ON OBJ_STORE__6 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_6 ON OBJ_STORE__6 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__6_INUM_INDEX_3 ON OBJ_STORE__6 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__6_ITS_INDEX_3 ON OBJ_STORE__6 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__6_IDBL_INDEX_3 ON OBJ_STORE__6 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_7 ON OBJ_STORE__6 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__6_ISTR_INDEX_8 ON OBJ_STORE__6 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__6_INUM_INDEX_4 ON OBJ_STORE__6 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__6_ITS_INDEX_4 ON OBJ_STORE__6 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__6_IDBL_INDEX_4 ON OBJ_STORE__6 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__6_CRE_USER_INDEX ON OBJ_STORE__6 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__7
GO

CREATE TABLE OBJ_STORE__7
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__7_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__7_USTR_UNIQUE_1 ON OBJ_STORE__7 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_UNUM_UNIQUE_1 ON OBJ_STORE__7 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_UTS_UNIQUE_1 ON OBJ_STORE__7 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_UDBL_UNIQUE_1 ON OBJ_STORE__7 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_USTR_UNIQUE_2 ON OBJ_STORE__7 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_UNUM_UNIQUE_2 ON OBJ_STORE__7 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_UTS_UNIQUE_2 ON OBJ_STORE__7 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__7_UDBL_UNIQUE_2 ON OBJ_STORE__7 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_1 ON OBJ_STORE__7 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_2 ON OBJ_STORE__7 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__7_INUM_INDEX_1 ON OBJ_STORE__7 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__7_ITS_INDEX_1 ON OBJ_STORE__7 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__7_IDBL_INDEX_1 ON OBJ_STORE__7 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_3 ON OBJ_STORE__7 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_4 ON OBJ_STORE__7 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__7_INUM_INDEX_2 ON OBJ_STORE__7 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__7_ITS_INDEX_2 ON OBJ_STORE__7 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__7_IDBL_INDEX_2 ON OBJ_STORE__7 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_5 ON OBJ_STORE__7 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_6 ON OBJ_STORE__7 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__7_INUM_INDEX_3 ON OBJ_STORE__7 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__7_ITS_INDEX_3 ON OBJ_STORE__7 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__7_IDBL_INDEX_3 ON OBJ_STORE__7 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_7 ON OBJ_STORE__7 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__7_ISTR_INDEX_8 ON OBJ_STORE__7 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__7_INUM_INDEX_4 ON OBJ_STORE__7 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__7_ITS_INDEX_4 ON OBJ_STORE__7 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__7_IDBL_INDEX_4 ON OBJ_STORE__7 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__7_CRE_USER_INDEX ON OBJ_STORE__7 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__8
GO

CREATE TABLE OBJ_STORE__8
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__8_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__8_USTR_UNIQUE_1 ON OBJ_STORE__8 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_UNUM_UNIQUE_1 ON OBJ_STORE__8 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_UTS_UNIQUE_1 ON OBJ_STORE__8 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_UDBL_UNIQUE_1 ON OBJ_STORE__8 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_USTR_UNIQUE_2 ON OBJ_STORE__8 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_UNUM_UNIQUE_2 ON OBJ_STORE__8 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_UTS_UNIQUE_2 ON OBJ_STORE__8 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__8_UDBL_UNIQUE_2 ON OBJ_STORE__8 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_1 ON OBJ_STORE__8 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_2 ON OBJ_STORE__8 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__8_INUM_INDEX_1 ON OBJ_STORE__8 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__8_ITS_INDEX_1 ON OBJ_STORE__8 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__8_IDBL_INDEX_1 ON OBJ_STORE__8 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_3 ON OBJ_STORE__8 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_4 ON OBJ_STORE__8 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__8_INUM_INDEX_2 ON OBJ_STORE__8 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__8_ITS_INDEX_2 ON OBJ_STORE__8 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__8_IDBL_INDEX_2 ON OBJ_STORE__8 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_5 ON OBJ_STORE__8 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_6 ON OBJ_STORE__8 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__8_INUM_INDEX_3 ON OBJ_STORE__8 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__8_ITS_INDEX_3 ON OBJ_STORE__8 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__8_IDBL_INDEX_3 ON OBJ_STORE__8 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_7 ON OBJ_STORE__8 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__8_ISTR_INDEX_8 ON OBJ_STORE__8 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__8_INUM_INDEX_4 ON OBJ_STORE__8 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__8_ITS_INDEX_4 ON OBJ_STORE__8 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__8_IDBL_INDEX_4 ON OBJ_STORE__8 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__8_CRE_USER_INDEX ON OBJ_STORE__8 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__9
GO

CREATE TABLE OBJ_STORE__9
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__9_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__9_USTR_UNIQUE_1 ON OBJ_STORE__9 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_UNUM_UNIQUE_1 ON OBJ_STORE__9 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_UTS_UNIQUE_1 ON OBJ_STORE__9 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_UDBL_UNIQUE_1 ON OBJ_STORE__9 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_USTR_UNIQUE_2 ON OBJ_STORE__9 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_UNUM_UNIQUE_2 ON OBJ_STORE__9 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_UTS_UNIQUE_2 ON OBJ_STORE__9 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__9_UDBL_UNIQUE_2 ON OBJ_STORE__9 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_1 ON OBJ_STORE__9 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_2 ON OBJ_STORE__9 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__9_INUM_INDEX_1 ON OBJ_STORE__9 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__9_ITS_INDEX_1 ON OBJ_STORE__9 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__9_IDBL_INDEX_1 ON OBJ_STORE__9 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_3 ON OBJ_STORE__9 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_4 ON OBJ_STORE__9 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__9_INUM_INDEX_2 ON OBJ_STORE__9 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__9_ITS_INDEX_2 ON OBJ_STORE__9 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__9_IDBL_INDEX_2 ON OBJ_STORE__9 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_5 ON OBJ_STORE__9 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_6 ON OBJ_STORE__9 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__9_INUM_INDEX_3 ON OBJ_STORE__9 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__9_ITS_INDEX_3 ON OBJ_STORE__9 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__9_IDBL_INDEX_3 ON OBJ_STORE__9 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_7 ON OBJ_STORE__9 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__9_ISTR_INDEX_8 ON OBJ_STORE__9 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__9_INUM_INDEX_4 ON OBJ_STORE__9 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__9_ITS_INDEX_4 ON OBJ_STORE__9 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__9_IDBL_INDEX_4 ON OBJ_STORE__9 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__9_CRE_USER_INDEX ON OBJ_STORE__9 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__10
GO

CREATE TABLE OBJ_STORE__10
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__10_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__10_USTR_UNIQUE_1 ON OBJ_STORE__10 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_UNUM_UNIQUE_1 ON OBJ_STORE__10 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_UTS_UNIQUE_1 ON OBJ_STORE__10 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_UDBL_UNIQUE_1 ON OBJ_STORE__10 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_USTR_UNIQUE_2 ON OBJ_STORE__10 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_UNUM_UNIQUE_2 ON OBJ_STORE__10 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_UTS_UNIQUE_2 ON OBJ_STORE__10 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__10_UDBL_UNIQUE_2 ON OBJ_STORE__10 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_1 ON OBJ_STORE__10 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_2 ON OBJ_STORE__10 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__10_INUM_INDEX_1 ON OBJ_STORE__10 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__10_ITS_INDEX_1 ON OBJ_STORE__10 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__10_IDBL_INDEX_1 ON OBJ_STORE__10 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_3 ON OBJ_STORE__10 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_4 ON OBJ_STORE__10 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__10_INUM_INDEX_2 ON OBJ_STORE__10 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__10_ITS_INDEX_2 ON OBJ_STORE__10 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__10_IDBL_INDEX_2 ON OBJ_STORE__10 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_5 ON OBJ_STORE__10 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_6 ON OBJ_STORE__10 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__10_INUM_INDEX_3 ON OBJ_STORE__10 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__10_ITS_INDEX_3 ON OBJ_STORE__10 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__10_IDBL_INDEX_3 ON OBJ_STORE__10 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_7 ON OBJ_STORE__10 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__10_ISTR_INDEX_8 ON OBJ_STORE__10 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__10_INUM_INDEX_4 ON OBJ_STORE__10 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__10_ITS_INDEX_4 ON OBJ_STORE__10 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__10_IDBL_INDEX_4 ON OBJ_STORE__10 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__10_CRE_USER_INDEX ON OBJ_STORE__10 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__11
GO

CREATE TABLE OBJ_STORE__11
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__11_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__11_USTR_UNIQUE_1 ON OBJ_STORE__11 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_UNUM_UNIQUE_1 ON OBJ_STORE__11 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_UTS_UNIQUE_1 ON OBJ_STORE__11 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_UDBL_UNIQUE_1 ON OBJ_STORE__11 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_USTR_UNIQUE_2 ON OBJ_STORE__11 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_UNUM_UNIQUE_2 ON OBJ_STORE__11 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_UTS_UNIQUE_2 ON OBJ_STORE__11 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__11_UDBL_UNIQUE_2 ON OBJ_STORE__11 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_1 ON OBJ_STORE__11 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_2 ON OBJ_STORE__11 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__11_INUM_INDEX_1 ON OBJ_STORE__11 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__11_ITS_INDEX_1 ON OBJ_STORE__11 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__11_IDBL_INDEX_1 ON OBJ_STORE__11 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_3 ON OBJ_STORE__11 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_4 ON OBJ_STORE__11 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__11_INUM_INDEX_2 ON OBJ_STORE__11 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__11_ITS_INDEX_2 ON OBJ_STORE__11 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__11_IDBL_INDEX_2 ON OBJ_STORE__11 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_5 ON OBJ_STORE__11 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_6 ON OBJ_STORE__11 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__11_INUM_INDEX_3 ON OBJ_STORE__11 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__11_ITS_INDEX_3 ON OBJ_STORE__11 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__11_IDBL_INDEX_3 ON OBJ_STORE__11 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_7 ON OBJ_STORE__11 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__11_ISTR_INDEX_8 ON OBJ_STORE__11 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__11_INUM_INDEX_4 ON OBJ_STORE__11 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__11_ITS_INDEX_4 ON OBJ_STORE__11 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__11_IDBL_INDEX_4 ON OBJ_STORE__11 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__11_CRE_USER_INDEX ON OBJ_STORE__11 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__12
GO

CREATE TABLE OBJ_STORE__12
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__12_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__12_USTR_UNIQUE_1 ON OBJ_STORE__12 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_UNUM_UNIQUE_1 ON OBJ_STORE__12 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_UTS_UNIQUE_1 ON OBJ_STORE__12 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_UDBL_UNIQUE_1 ON OBJ_STORE__12 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_USTR_UNIQUE_2 ON OBJ_STORE__12 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_UNUM_UNIQUE_2 ON OBJ_STORE__12 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_UTS_UNIQUE_2 ON OBJ_STORE__12 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__12_UDBL_UNIQUE_2 ON OBJ_STORE__12 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_1 ON OBJ_STORE__12 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_2 ON OBJ_STORE__12 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__12_INUM_INDEX_1 ON OBJ_STORE__12 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__12_ITS_INDEX_1 ON OBJ_STORE__12 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__12_IDBL_INDEX_1 ON OBJ_STORE__12 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_3 ON OBJ_STORE__12 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_4 ON OBJ_STORE__12 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__12_INUM_INDEX_2 ON OBJ_STORE__12 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__12_ITS_INDEX_2 ON OBJ_STORE__12 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__12_IDBL_INDEX_2 ON OBJ_STORE__12 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_5 ON OBJ_STORE__12 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_6 ON OBJ_STORE__12 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__12_INUM_INDEX_3 ON OBJ_STORE__12 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__12_ITS_INDEX_3 ON OBJ_STORE__12 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__12_IDBL_INDEX_3 ON OBJ_STORE__12 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_7 ON OBJ_STORE__12 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__12_ISTR_INDEX_8 ON OBJ_STORE__12 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__12_INUM_INDEX_4 ON OBJ_STORE__12 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__12_ITS_INDEX_4 ON OBJ_STORE__12 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__12_IDBL_INDEX_4 ON OBJ_STORE__12 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__12_CRE_USER_INDEX ON OBJ_STORE__12 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__13
GO

CREATE TABLE OBJ_STORE__13
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__13_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__13_USTR_UNIQUE_1 ON OBJ_STORE__13 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_UNUM_UNIQUE_1 ON OBJ_STORE__13 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_UTS_UNIQUE_1 ON OBJ_STORE__13 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_UDBL_UNIQUE_1 ON OBJ_STORE__13 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_USTR_UNIQUE_2 ON OBJ_STORE__13 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_UNUM_UNIQUE_2 ON OBJ_STORE__13 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_UTS_UNIQUE_2 ON OBJ_STORE__13 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__13_UDBL_UNIQUE_2 ON OBJ_STORE__13 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_1 ON OBJ_STORE__13 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_2 ON OBJ_STORE__13 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__13_INUM_INDEX_1 ON OBJ_STORE__13 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__13_ITS_INDEX_1 ON OBJ_STORE__13 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__13_IDBL_INDEX_1 ON OBJ_STORE__13 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_3 ON OBJ_STORE__13 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_4 ON OBJ_STORE__13 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__13_INUM_INDEX_2 ON OBJ_STORE__13 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__13_ITS_INDEX_2 ON OBJ_STORE__13 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__13_IDBL_INDEX_2 ON OBJ_STORE__13 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_5 ON OBJ_STORE__13 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_6 ON OBJ_STORE__13 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__13_INUM_INDEX_3 ON OBJ_STORE__13 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__13_ITS_INDEX_3 ON OBJ_STORE__13 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__13_IDBL_INDEX_3 ON OBJ_STORE__13 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_7 ON OBJ_STORE__13 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__13_ISTR_INDEX_8 ON OBJ_STORE__13 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__13_INUM_INDEX_4 ON OBJ_STORE__13 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__13_ITS_INDEX_4 ON OBJ_STORE__13 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__13_IDBL_INDEX_4 ON OBJ_STORE__13 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__13_CRE_USER_INDEX ON OBJ_STORE__13 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__14
GO

CREATE TABLE OBJ_STORE__14
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__14_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__14_USTR_UNIQUE_1 ON OBJ_STORE__14 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_UNUM_UNIQUE_1 ON OBJ_STORE__14 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_UTS_UNIQUE_1 ON OBJ_STORE__14 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_UDBL_UNIQUE_1 ON OBJ_STORE__14 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_USTR_UNIQUE_2 ON OBJ_STORE__14 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_UNUM_UNIQUE_2 ON OBJ_STORE__14 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_UTS_UNIQUE_2 ON OBJ_STORE__14 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__14_UDBL_UNIQUE_2 ON OBJ_STORE__14 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_1 ON OBJ_STORE__14 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_2 ON OBJ_STORE__14 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__14_INUM_INDEX_1 ON OBJ_STORE__14 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__14_ITS_INDEX_1 ON OBJ_STORE__14 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__14_IDBL_INDEX_1 ON OBJ_STORE__14 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_3 ON OBJ_STORE__14 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_4 ON OBJ_STORE__14 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__14_INUM_INDEX_2 ON OBJ_STORE__14 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__14_ITS_INDEX_2 ON OBJ_STORE__14 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__14_IDBL_INDEX_2 ON OBJ_STORE__14 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_5 ON OBJ_STORE__14 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_6 ON OBJ_STORE__14 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__14_INUM_INDEX_3 ON OBJ_STORE__14 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__14_ITS_INDEX_3 ON OBJ_STORE__14 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__14_IDBL_INDEX_3 ON OBJ_STORE__14 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_7 ON OBJ_STORE__14 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__14_ISTR_INDEX_8 ON OBJ_STORE__14 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__14_INUM_INDEX_4 ON OBJ_STORE__14 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__14_ITS_INDEX_4 ON OBJ_STORE__14 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__14_IDBL_INDEX_4 ON OBJ_STORE__14 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__14_CRE_USER_INDEX ON OBJ_STORE__14 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__15
GO

CREATE TABLE OBJ_STORE__15
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__15_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__15_USTR_UNIQUE_1 ON OBJ_STORE__15 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_UNUM_UNIQUE_1 ON OBJ_STORE__15 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_UTS_UNIQUE_1 ON OBJ_STORE__15 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_UDBL_UNIQUE_1 ON OBJ_STORE__15 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_USTR_UNIQUE_2 ON OBJ_STORE__15 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_UNUM_UNIQUE_2 ON OBJ_STORE__15 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_UTS_UNIQUE_2 ON OBJ_STORE__15 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__15_UDBL_UNIQUE_2 ON OBJ_STORE__15 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_1 ON OBJ_STORE__15 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_2 ON OBJ_STORE__15 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__15_INUM_INDEX_1 ON OBJ_STORE__15 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__15_ITS_INDEX_1 ON OBJ_STORE__15 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__15_IDBL_INDEX_1 ON OBJ_STORE__15 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_3 ON OBJ_STORE__15 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_4 ON OBJ_STORE__15 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__15_INUM_INDEX_2 ON OBJ_STORE__15 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__15_ITS_INDEX_2 ON OBJ_STORE__15 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__15_IDBL_INDEX_2 ON OBJ_STORE__15 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_5 ON OBJ_STORE__15 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_6 ON OBJ_STORE__15 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__15_INUM_INDEX_3 ON OBJ_STORE__15 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__15_ITS_INDEX_3 ON OBJ_STORE__15 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__15_IDBL_INDEX_3 ON OBJ_STORE__15 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_7 ON OBJ_STORE__15 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__15_ISTR_INDEX_8 ON OBJ_STORE__15 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__15_INUM_INDEX_4 ON OBJ_STORE__15 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__15_ITS_INDEX_4 ON OBJ_STORE__15 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__15_IDBL_INDEX_4 ON OBJ_STORE__15 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__15_CRE_USER_INDEX ON OBJ_STORE__15 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__16
GO

CREATE TABLE OBJ_STORE__16
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__16_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__16_USTR_UNIQUE_1 ON OBJ_STORE__16 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_UNUM_UNIQUE_1 ON OBJ_STORE__16 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_UTS_UNIQUE_1 ON OBJ_STORE__16 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_UDBL_UNIQUE_1 ON OBJ_STORE__16 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_USTR_UNIQUE_2 ON OBJ_STORE__16 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_UNUM_UNIQUE_2 ON OBJ_STORE__16 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_UTS_UNIQUE_2 ON OBJ_STORE__16 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__16_UDBL_UNIQUE_2 ON OBJ_STORE__16 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_1 ON OBJ_STORE__16 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_2 ON OBJ_STORE__16 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__16_INUM_INDEX_1 ON OBJ_STORE__16 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__16_ITS_INDEX_1 ON OBJ_STORE__16 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__16_IDBL_INDEX_1 ON OBJ_STORE__16 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_3 ON OBJ_STORE__16 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_4 ON OBJ_STORE__16 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__16_INUM_INDEX_2 ON OBJ_STORE__16 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__16_ITS_INDEX_2 ON OBJ_STORE__16 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__16_IDBL_INDEX_2 ON OBJ_STORE__16 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_5 ON OBJ_STORE__16 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_6 ON OBJ_STORE__16 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__16_INUM_INDEX_3 ON OBJ_STORE__16 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__16_ITS_INDEX_3 ON OBJ_STORE__16 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__16_IDBL_INDEX_3 ON OBJ_STORE__16 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_7 ON OBJ_STORE__16 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__16_ISTR_INDEX_8 ON OBJ_STORE__16 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__16_INUM_INDEX_4 ON OBJ_STORE__16 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__16_ITS_INDEX_4 ON OBJ_STORE__16 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__16_IDBL_INDEX_4 ON OBJ_STORE__16 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__16_CRE_USER_INDEX ON OBJ_STORE__16 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__17
GO

CREATE TABLE OBJ_STORE__17
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__17_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__17_USTR_UNIQUE_1 ON OBJ_STORE__17 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_UNUM_UNIQUE_1 ON OBJ_STORE__17 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_UTS_UNIQUE_1 ON OBJ_STORE__17 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_UDBL_UNIQUE_1 ON OBJ_STORE__17 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_USTR_UNIQUE_2 ON OBJ_STORE__17 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_UNUM_UNIQUE_2 ON OBJ_STORE__17 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_UTS_UNIQUE_2 ON OBJ_STORE__17 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__17_UDBL_UNIQUE_2 ON OBJ_STORE__17 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_1 ON OBJ_STORE__17 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_2 ON OBJ_STORE__17 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__17_INUM_INDEX_1 ON OBJ_STORE__17 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__17_ITS_INDEX_1 ON OBJ_STORE__17 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__17_IDBL_INDEX_1 ON OBJ_STORE__17 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_3 ON OBJ_STORE__17 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_4 ON OBJ_STORE__17 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__17_INUM_INDEX_2 ON OBJ_STORE__17 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__17_ITS_INDEX_2 ON OBJ_STORE__17 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__17_IDBL_INDEX_2 ON OBJ_STORE__17 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_5 ON OBJ_STORE__17 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_6 ON OBJ_STORE__17 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__17_INUM_INDEX_3 ON OBJ_STORE__17 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__17_ITS_INDEX_3 ON OBJ_STORE__17 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__17_IDBL_INDEX_3 ON OBJ_STORE__17 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_7 ON OBJ_STORE__17 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__17_ISTR_INDEX_8 ON OBJ_STORE__17 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__17_INUM_INDEX_4 ON OBJ_STORE__17 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__17_ITS_INDEX_4 ON OBJ_STORE__17 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__17_IDBL_INDEX_4 ON OBJ_STORE__17 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__17_CRE_USER_INDEX ON OBJ_STORE__17 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__18
GO

CREATE TABLE OBJ_STORE__18
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__18_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__18_USTR_UNIQUE_1 ON OBJ_STORE__18 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_UNUM_UNIQUE_1 ON OBJ_STORE__18 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_UTS_UNIQUE_1 ON OBJ_STORE__18 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_UDBL_UNIQUE_1 ON OBJ_STORE__18 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_USTR_UNIQUE_2 ON OBJ_STORE__18 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_UNUM_UNIQUE_2 ON OBJ_STORE__18 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_UTS_UNIQUE_2 ON OBJ_STORE__18 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__18_UDBL_UNIQUE_2 ON OBJ_STORE__18 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_1 ON OBJ_STORE__18 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_2 ON OBJ_STORE__18 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__18_INUM_INDEX_1 ON OBJ_STORE__18 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__18_ITS_INDEX_1 ON OBJ_STORE__18 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__18_IDBL_INDEX_1 ON OBJ_STORE__18 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_3 ON OBJ_STORE__18 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_4 ON OBJ_STORE__18 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__18_INUM_INDEX_2 ON OBJ_STORE__18 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__18_ITS_INDEX_2 ON OBJ_STORE__18 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__18_IDBL_INDEX_2 ON OBJ_STORE__18 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_5 ON OBJ_STORE__18 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_6 ON OBJ_STORE__18 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__18_INUM_INDEX_3 ON OBJ_STORE__18 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__18_ITS_INDEX_3 ON OBJ_STORE__18 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__18_IDBL_INDEX_3 ON OBJ_STORE__18 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_7 ON OBJ_STORE__18 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__18_ISTR_INDEX_8 ON OBJ_STORE__18 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__18_INUM_INDEX_4 ON OBJ_STORE__18 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__18_ITS_INDEX_4 ON OBJ_STORE__18 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__18_IDBL_INDEX_4 ON OBJ_STORE__18 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__18_CRE_USER_INDEX ON OBJ_STORE__18 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__19
GO

CREATE TABLE OBJ_STORE__19
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__19_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__19_USTR_UNIQUE_1 ON OBJ_STORE__19 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_UNUM_UNIQUE_1 ON OBJ_STORE__19 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_UTS_UNIQUE_1 ON OBJ_STORE__19 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_UDBL_UNIQUE_1 ON OBJ_STORE__19 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_USTR_UNIQUE_2 ON OBJ_STORE__19 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_UNUM_UNIQUE_2 ON OBJ_STORE__19 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_UTS_UNIQUE_2 ON OBJ_STORE__19 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__19_UDBL_UNIQUE_2 ON OBJ_STORE__19 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_1 ON OBJ_STORE__19 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_2 ON OBJ_STORE__19 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__19_INUM_INDEX_1 ON OBJ_STORE__19 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__19_ITS_INDEX_1 ON OBJ_STORE__19 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__19_IDBL_INDEX_1 ON OBJ_STORE__19 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_3 ON OBJ_STORE__19 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_4 ON OBJ_STORE__19 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__19_INUM_INDEX_2 ON OBJ_STORE__19 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__19_ITS_INDEX_2 ON OBJ_STORE__19 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__19_IDBL_INDEX_2 ON OBJ_STORE__19 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_5 ON OBJ_STORE__19 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_6 ON OBJ_STORE__19 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__19_INUM_INDEX_3 ON OBJ_STORE__19 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__19_ITS_INDEX_3 ON OBJ_STORE__19 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__19_IDBL_INDEX_3 ON OBJ_STORE__19 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_7 ON OBJ_STORE__19 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__19_ISTR_INDEX_8 ON OBJ_STORE__19 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__19_INUM_INDEX_4 ON OBJ_STORE__19 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__19_ITS_INDEX_4 ON OBJ_STORE__19 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__19_IDBL_INDEX_4 ON OBJ_STORE__19 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__19_CRE_USER_INDEX ON OBJ_STORE__19 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__20
GO

CREATE TABLE OBJ_STORE__20
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__20_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__20_USTR_UNIQUE_1 ON OBJ_STORE__20 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_UNUM_UNIQUE_1 ON OBJ_STORE__20 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_UTS_UNIQUE_1 ON OBJ_STORE__20 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_UDBL_UNIQUE_1 ON OBJ_STORE__20 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_USTR_UNIQUE_2 ON OBJ_STORE__20 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_UNUM_UNIQUE_2 ON OBJ_STORE__20 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_UTS_UNIQUE_2 ON OBJ_STORE__20 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__20_UDBL_UNIQUE_2 ON OBJ_STORE__20 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_1 ON OBJ_STORE__20 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_2 ON OBJ_STORE__20 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__20_INUM_INDEX_1 ON OBJ_STORE__20 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__20_ITS_INDEX_1 ON OBJ_STORE__20 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__20_IDBL_INDEX_1 ON OBJ_STORE__20 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_3 ON OBJ_STORE__20 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_4 ON OBJ_STORE__20 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__20_INUM_INDEX_2 ON OBJ_STORE__20 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__20_ITS_INDEX_2 ON OBJ_STORE__20 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__20_IDBL_INDEX_2 ON OBJ_STORE__20 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_5 ON OBJ_STORE__20 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_6 ON OBJ_STORE__20 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__20_INUM_INDEX_3 ON OBJ_STORE__20 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__20_ITS_INDEX_3 ON OBJ_STORE__20 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__20_IDBL_INDEX_3 ON OBJ_STORE__20 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_7 ON OBJ_STORE__20 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__20_ISTR_INDEX_8 ON OBJ_STORE__20 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__20_INUM_INDEX_4 ON OBJ_STORE__20 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__20_ITS_INDEX_4 ON OBJ_STORE__20 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__20_IDBL_INDEX_4 ON OBJ_STORE__20 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__20_CRE_USER_INDEX ON OBJ_STORE__20 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__21
GO

CREATE TABLE OBJ_STORE__21
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__21_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__21_USTR_UNIQUE_1 ON OBJ_STORE__21 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_UNUM_UNIQUE_1 ON OBJ_STORE__21 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_UTS_UNIQUE_1 ON OBJ_STORE__21 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_UDBL_UNIQUE_1 ON OBJ_STORE__21 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_USTR_UNIQUE_2 ON OBJ_STORE__21 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_UNUM_UNIQUE_2 ON OBJ_STORE__21 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_UTS_UNIQUE_2 ON OBJ_STORE__21 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__21_UDBL_UNIQUE_2 ON OBJ_STORE__21 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_1 ON OBJ_STORE__21 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_2 ON OBJ_STORE__21 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__21_INUM_INDEX_1 ON OBJ_STORE__21 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__21_ITS_INDEX_1 ON OBJ_STORE__21 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__21_IDBL_INDEX_1 ON OBJ_STORE__21 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_3 ON OBJ_STORE__21 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_4 ON OBJ_STORE__21 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__21_INUM_INDEX_2 ON OBJ_STORE__21 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__21_ITS_INDEX_2 ON OBJ_STORE__21 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__21_IDBL_INDEX_2 ON OBJ_STORE__21 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_5 ON OBJ_STORE__21 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_6 ON OBJ_STORE__21 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__21_INUM_INDEX_3 ON OBJ_STORE__21 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__21_ITS_INDEX_3 ON OBJ_STORE__21 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__21_IDBL_INDEX_3 ON OBJ_STORE__21 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_7 ON OBJ_STORE__21 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__21_ISTR_INDEX_8 ON OBJ_STORE__21 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__21_INUM_INDEX_4 ON OBJ_STORE__21 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__21_ITS_INDEX_4 ON OBJ_STORE__21 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__21_IDBL_INDEX_4 ON OBJ_STORE__21 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__21_CRE_USER_INDEX ON OBJ_STORE__21 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__22
GO

CREATE TABLE OBJ_STORE__22
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__22_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__22_USTR_UNIQUE_1 ON OBJ_STORE__22 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_UNUM_UNIQUE_1 ON OBJ_STORE__22 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_UTS_UNIQUE_1 ON OBJ_STORE__22 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_UDBL_UNIQUE_1 ON OBJ_STORE__22 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_USTR_UNIQUE_2 ON OBJ_STORE__22 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_UNUM_UNIQUE_2 ON OBJ_STORE__22 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_UTS_UNIQUE_2 ON OBJ_STORE__22 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__22_UDBL_UNIQUE_2 ON OBJ_STORE__22 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_1 ON OBJ_STORE__22 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_2 ON OBJ_STORE__22 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__22_INUM_INDEX_1 ON OBJ_STORE__22 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__22_ITS_INDEX_1 ON OBJ_STORE__22 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__22_IDBL_INDEX_1 ON OBJ_STORE__22 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_3 ON OBJ_STORE__22 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_4 ON OBJ_STORE__22 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__22_INUM_INDEX_2 ON OBJ_STORE__22 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__22_ITS_INDEX_2 ON OBJ_STORE__22 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__22_IDBL_INDEX_2 ON OBJ_STORE__22 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_5 ON OBJ_STORE__22 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_6 ON OBJ_STORE__22 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__22_INUM_INDEX_3 ON OBJ_STORE__22 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__22_ITS_INDEX_3 ON OBJ_STORE__22 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__22_IDBL_INDEX_3 ON OBJ_STORE__22 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_7 ON OBJ_STORE__22 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__22_ISTR_INDEX_8 ON OBJ_STORE__22 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__22_INUM_INDEX_4 ON OBJ_STORE__22 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__22_ITS_INDEX_4 ON OBJ_STORE__22 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__22_IDBL_INDEX_4 ON OBJ_STORE__22 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__22_CRE_USER_INDEX ON OBJ_STORE__22 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__23
GO

CREATE TABLE OBJ_STORE__23
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__23_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__23_USTR_UNIQUE_1 ON OBJ_STORE__23 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_UNUM_UNIQUE_1 ON OBJ_STORE__23 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_UTS_UNIQUE_1 ON OBJ_STORE__23 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_UDBL_UNIQUE_1 ON OBJ_STORE__23 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_USTR_UNIQUE_2 ON OBJ_STORE__23 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_UNUM_UNIQUE_2 ON OBJ_STORE__23 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_UTS_UNIQUE_2 ON OBJ_STORE__23 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__23_UDBL_UNIQUE_2 ON OBJ_STORE__23 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_1 ON OBJ_STORE__23 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_2 ON OBJ_STORE__23 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__23_INUM_INDEX_1 ON OBJ_STORE__23 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__23_ITS_INDEX_1 ON OBJ_STORE__23 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__23_IDBL_INDEX_1 ON OBJ_STORE__23 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_3 ON OBJ_STORE__23 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_4 ON OBJ_STORE__23 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__23_INUM_INDEX_2 ON OBJ_STORE__23 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__23_ITS_INDEX_2 ON OBJ_STORE__23 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__23_IDBL_INDEX_2 ON OBJ_STORE__23 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_5 ON OBJ_STORE__23 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_6 ON OBJ_STORE__23 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__23_INUM_INDEX_3 ON OBJ_STORE__23 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__23_ITS_INDEX_3 ON OBJ_STORE__23 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__23_IDBL_INDEX_3 ON OBJ_STORE__23 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_7 ON OBJ_STORE__23 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__23_ISTR_INDEX_8 ON OBJ_STORE__23 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__23_INUM_INDEX_4 ON OBJ_STORE__23 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__23_ITS_INDEX_4 ON OBJ_STORE__23 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__23_IDBL_INDEX_4 ON OBJ_STORE__23 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__23_CRE_USER_INDEX ON OBJ_STORE__23 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__24
GO

CREATE TABLE OBJ_STORE__24
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__24_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__24_USTR_UNIQUE_1 ON OBJ_STORE__24 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_UNUM_UNIQUE_1 ON OBJ_STORE__24 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_UTS_UNIQUE_1 ON OBJ_STORE__24 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_UDBL_UNIQUE_1 ON OBJ_STORE__24 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_USTR_UNIQUE_2 ON OBJ_STORE__24 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_UNUM_UNIQUE_2 ON OBJ_STORE__24 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_UTS_UNIQUE_2 ON OBJ_STORE__24 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__24_UDBL_UNIQUE_2 ON OBJ_STORE__24 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_1 ON OBJ_STORE__24 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_2 ON OBJ_STORE__24 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__24_INUM_INDEX_1 ON OBJ_STORE__24 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__24_ITS_INDEX_1 ON OBJ_STORE__24 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__24_IDBL_INDEX_1 ON OBJ_STORE__24 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_3 ON OBJ_STORE__24 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_4 ON OBJ_STORE__24 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__24_INUM_INDEX_2 ON OBJ_STORE__24 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__24_ITS_INDEX_2 ON OBJ_STORE__24 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__24_IDBL_INDEX_2 ON OBJ_STORE__24 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_5 ON OBJ_STORE__24 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_6 ON OBJ_STORE__24 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__24_INUM_INDEX_3 ON OBJ_STORE__24 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__24_ITS_INDEX_3 ON OBJ_STORE__24 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__24_IDBL_INDEX_3 ON OBJ_STORE__24 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_7 ON OBJ_STORE__24 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__24_ISTR_INDEX_8 ON OBJ_STORE__24 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__24_INUM_INDEX_4 ON OBJ_STORE__24 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__24_ITS_INDEX_4 ON OBJ_STORE__24 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__24_IDBL_INDEX_4 ON OBJ_STORE__24 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__24_CRE_USER_INDEX ON OBJ_STORE__24 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__25
GO

CREATE TABLE OBJ_STORE__25
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__25_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__25_USTR_UNIQUE_1 ON OBJ_STORE__25 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_UNUM_UNIQUE_1 ON OBJ_STORE__25 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_UTS_UNIQUE_1 ON OBJ_STORE__25 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_UDBL_UNIQUE_1 ON OBJ_STORE__25 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_USTR_UNIQUE_2 ON OBJ_STORE__25 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_UNUM_UNIQUE_2 ON OBJ_STORE__25 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_UTS_UNIQUE_2 ON OBJ_STORE__25 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__25_UDBL_UNIQUE_2 ON OBJ_STORE__25 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_1 ON OBJ_STORE__25 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_2 ON OBJ_STORE__25 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__25_INUM_INDEX_1 ON OBJ_STORE__25 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__25_ITS_INDEX_1 ON OBJ_STORE__25 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__25_IDBL_INDEX_1 ON OBJ_STORE__25 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_3 ON OBJ_STORE__25 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_4 ON OBJ_STORE__25 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__25_INUM_INDEX_2 ON OBJ_STORE__25 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__25_ITS_INDEX_2 ON OBJ_STORE__25 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__25_IDBL_INDEX_2 ON OBJ_STORE__25 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_5 ON OBJ_STORE__25 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_6 ON OBJ_STORE__25 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__25_INUM_INDEX_3 ON OBJ_STORE__25 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__25_ITS_INDEX_3 ON OBJ_STORE__25 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__25_IDBL_INDEX_3 ON OBJ_STORE__25 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_7 ON OBJ_STORE__25 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__25_ISTR_INDEX_8 ON OBJ_STORE__25 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__25_INUM_INDEX_4 ON OBJ_STORE__25 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__25_ITS_INDEX_4 ON OBJ_STORE__25 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__25_IDBL_INDEX_4 ON OBJ_STORE__25 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__25_CRE_USER_INDEX ON OBJ_STORE__25 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__26
GO

CREATE TABLE OBJ_STORE__26
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__26_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__26_USTR_UNIQUE_1 ON OBJ_STORE__26 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_UNUM_UNIQUE_1 ON OBJ_STORE__26 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_UTS_UNIQUE_1 ON OBJ_STORE__26 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_UDBL_UNIQUE_1 ON OBJ_STORE__26 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_USTR_UNIQUE_2 ON OBJ_STORE__26 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_UNUM_UNIQUE_2 ON OBJ_STORE__26 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_UTS_UNIQUE_2 ON OBJ_STORE__26 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__26_UDBL_UNIQUE_2 ON OBJ_STORE__26 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_1 ON OBJ_STORE__26 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_2 ON OBJ_STORE__26 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__26_INUM_INDEX_1 ON OBJ_STORE__26 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__26_ITS_INDEX_1 ON OBJ_STORE__26 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__26_IDBL_INDEX_1 ON OBJ_STORE__26 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_3 ON OBJ_STORE__26 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_4 ON OBJ_STORE__26 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__26_INUM_INDEX_2 ON OBJ_STORE__26 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__26_ITS_INDEX_2 ON OBJ_STORE__26 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__26_IDBL_INDEX_2 ON OBJ_STORE__26 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_5 ON OBJ_STORE__26 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_6 ON OBJ_STORE__26 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__26_INUM_INDEX_3 ON OBJ_STORE__26 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__26_ITS_INDEX_3 ON OBJ_STORE__26 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__26_IDBL_INDEX_3 ON OBJ_STORE__26 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_7 ON OBJ_STORE__26 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__26_ISTR_INDEX_8 ON OBJ_STORE__26 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__26_INUM_INDEX_4 ON OBJ_STORE__26 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__26_ITS_INDEX_4 ON OBJ_STORE__26 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__26_IDBL_INDEX_4 ON OBJ_STORE__26 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__26_CRE_USER_INDEX ON OBJ_STORE__26 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__27
GO

CREATE TABLE OBJ_STORE__27
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__27_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__27_USTR_UNIQUE_1 ON OBJ_STORE__27 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_UNUM_UNIQUE_1 ON OBJ_STORE__27 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_UTS_UNIQUE_1 ON OBJ_STORE__27 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_UDBL_UNIQUE_1 ON OBJ_STORE__27 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_USTR_UNIQUE_2 ON OBJ_STORE__27 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_UNUM_UNIQUE_2 ON OBJ_STORE__27 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_UTS_UNIQUE_2 ON OBJ_STORE__27 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__27_UDBL_UNIQUE_2 ON OBJ_STORE__27 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_1 ON OBJ_STORE__27 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_2 ON OBJ_STORE__27 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__27_INUM_INDEX_1 ON OBJ_STORE__27 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__27_ITS_INDEX_1 ON OBJ_STORE__27 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__27_IDBL_INDEX_1 ON OBJ_STORE__27 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_3 ON OBJ_STORE__27 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_4 ON OBJ_STORE__27 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__27_INUM_INDEX_2 ON OBJ_STORE__27 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__27_ITS_INDEX_2 ON OBJ_STORE__27 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__27_IDBL_INDEX_2 ON OBJ_STORE__27 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_5 ON OBJ_STORE__27 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_6 ON OBJ_STORE__27 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__27_INUM_INDEX_3 ON OBJ_STORE__27 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__27_ITS_INDEX_3 ON OBJ_STORE__27 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__27_IDBL_INDEX_3 ON OBJ_STORE__27 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_7 ON OBJ_STORE__27 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__27_ISTR_INDEX_8 ON OBJ_STORE__27 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__27_INUM_INDEX_4 ON OBJ_STORE__27 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__27_ITS_INDEX_4 ON OBJ_STORE__27 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__27_IDBL_INDEX_4 ON OBJ_STORE__27 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__27_CRE_USER_INDEX ON OBJ_STORE__27 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__28
GO

CREATE TABLE OBJ_STORE__28
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__28_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__28_USTR_UNIQUE_1 ON OBJ_STORE__28 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_UNUM_UNIQUE_1 ON OBJ_STORE__28 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_UTS_UNIQUE_1 ON OBJ_STORE__28 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_UDBL_UNIQUE_1 ON OBJ_STORE__28 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_USTR_UNIQUE_2 ON OBJ_STORE__28 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_UNUM_UNIQUE_2 ON OBJ_STORE__28 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_UTS_UNIQUE_2 ON OBJ_STORE__28 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__28_UDBL_UNIQUE_2 ON OBJ_STORE__28 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_1 ON OBJ_STORE__28 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_2 ON OBJ_STORE__28 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__28_INUM_INDEX_1 ON OBJ_STORE__28 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__28_ITS_INDEX_1 ON OBJ_STORE__28 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__28_IDBL_INDEX_1 ON OBJ_STORE__28 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_3 ON OBJ_STORE__28 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_4 ON OBJ_STORE__28 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__28_INUM_INDEX_2 ON OBJ_STORE__28 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__28_ITS_INDEX_2 ON OBJ_STORE__28 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__28_IDBL_INDEX_2 ON OBJ_STORE__28 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_5 ON OBJ_STORE__28 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_6 ON OBJ_STORE__28 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__28_INUM_INDEX_3 ON OBJ_STORE__28 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__28_ITS_INDEX_3 ON OBJ_STORE__28 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__28_IDBL_INDEX_3 ON OBJ_STORE__28 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_7 ON OBJ_STORE__28 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__28_ISTR_INDEX_8 ON OBJ_STORE__28 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__28_INUM_INDEX_4 ON OBJ_STORE__28 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__28_ITS_INDEX_4 ON OBJ_STORE__28 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__28_IDBL_INDEX_4 ON OBJ_STORE__28 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__28_CRE_USER_INDEX ON OBJ_STORE__28 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__29
GO

CREATE TABLE OBJ_STORE__29
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__29_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__29_USTR_UNIQUE_1 ON OBJ_STORE__29 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_UNUM_UNIQUE_1 ON OBJ_STORE__29 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_UTS_UNIQUE_1 ON OBJ_STORE__29 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_UDBL_UNIQUE_1 ON OBJ_STORE__29 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_USTR_UNIQUE_2 ON OBJ_STORE__29 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_UNUM_UNIQUE_2 ON OBJ_STORE__29 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_UTS_UNIQUE_2 ON OBJ_STORE__29 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__29_UDBL_UNIQUE_2 ON OBJ_STORE__29 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_1 ON OBJ_STORE__29 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_2 ON OBJ_STORE__29 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__29_INUM_INDEX_1 ON OBJ_STORE__29 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__29_ITS_INDEX_1 ON OBJ_STORE__29 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__29_IDBL_INDEX_1 ON OBJ_STORE__29 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_3 ON OBJ_STORE__29 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_4 ON OBJ_STORE__29 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__29_INUM_INDEX_2 ON OBJ_STORE__29 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__29_ITS_INDEX_2 ON OBJ_STORE__29 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__29_IDBL_INDEX_2 ON OBJ_STORE__29 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_5 ON OBJ_STORE__29 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_6 ON OBJ_STORE__29 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__29_INUM_INDEX_3 ON OBJ_STORE__29 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__29_ITS_INDEX_3 ON OBJ_STORE__29 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__29_IDBL_INDEX_3 ON OBJ_STORE__29 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_7 ON OBJ_STORE__29 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__29_ISTR_INDEX_8 ON OBJ_STORE__29 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__29_INUM_INDEX_4 ON OBJ_STORE__29 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__29_ITS_INDEX_4 ON OBJ_STORE__29 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__29_IDBL_INDEX_4 ON OBJ_STORE__29 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__29_CRE_USER_INDEX ON OBJ_STORE__29 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__30
GO

CREATE TABLE OBJ_STORE__30
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__30_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__30_USTR_UNIQUE_1 ON OBJ_STORE__30 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_UNUM_UNIQUE_1 ON OBJ_STORE__30 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_UTS_UNIQUE_1 ON OBJ_STORE__30 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_UDBL_UNIQUE_1 ON OBJ_STORE__30 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_USTR_UNIQUE_2 ON OBJ_STORE__30 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_UNUM_UNIQUE_2 ON OBJ_STORE__30 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_UTS_UNIQUE_2 ON OBJ_STORE__30 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__30_UDBL_UNIQUE_2 ON OBJ_STORE__30 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_1 ON OBJ_STORE__30 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_2 ON OBJ_STORE__30 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__30_INUM_INDEX_1 ON OBJ_STORE__30 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__30_ITS_INDEX_1 ON OBJ_STORE__30 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__30_IDBL_INDEX_1 ON OBJ_STORE__30 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_3 ON OBJ_STORE__30 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_4 ON OBJ_STORE__30 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__30_INUM_INDEX_2 ON OBJ_STORE__30 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__30_ITS_INDEX_2 ON OBJ_STORE__30 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__30_IDBL_INDEX_2 ON OBJ_STORE__30 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_5 ON OBJ_STORE__30 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_6 ON OBJ_STORE__30 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__30_INUM_INDEX_3 ON OBJ_STORE__30 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__30_ITS_INDEX_3 ON OBJ_STORE__30 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__30_IDBL_INDEX_3 ON OBJ_STORE__30 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_7 ON OBJ_STORE__30 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__30_ISTR_INDEX_8 ON OBJ_STORE__30 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__30_INUM_INDEX_4 ON OBJ_STORE__30 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__30_ITS_INDEX_4 ON OBJ_STORE__30 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__30_IDBL_INDEX_4 ON OBJ_STORE__30 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__30_CRE_USER_INDEX ON OBJ_STORE__30 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__31
GO

CREATE TABLE OBJ_STORE__31
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64)
    ,USTR_1 NVARCHAR(380)
    ,USTR_1_TD VARCHAR(139)
    ,UNUM_1 NUMERIC
    ,UNUM_1_TD VARCHAR(139)
    ,UTS_1 DATETIME2(3)
    ,UTS_1_TD VARCHAR(139)
    ,UDBL_1 FLOAT
    ,UDBL_1_TD VARCHAR(139)
    ,USTR_2 NVARCHAR(380)
    ,USTR_2_TD VARCHAR(139)
    ,UNUM_2 NUMERIC
    ,UNUM_2_TD VARCHAR(139)
    ,UTS_2 DATETIME2(3)
    ,UTS_2_TD VARCHAR(139)
    ,UDBL_2 FLOAT
    ,UDBL_2_TD VARCHAR(139)
    ,ISTR_1 NVARCHAR(380)
    ,ISTR_1_TD VARCHAR(139)
    ,ISTR_2 NVARCHAR(380)
    ,ISTR_2_TD VARCHAR(139)
    ,INUM_1 NUMERIC
    ,INUM_1_TD VARCHAR(139)
    ,ITS_1 DATETIME2(3)
    ,ITS_1_TD VARCHAR(139)
    ,IDBL_1 FLOAT
    ,IDBL_1_TD VARCHAR(139)
    ,ISTR_3 NVARCHAR(380)
    ,ISTR_3_TD VARCHAR(139)
    ,ISTR_4 NVARCHAR(380)
    ,ISTR_4_TD VARCHAR(139)
    ,INUM_2 NUMERIC
    ,INUM_2_TD VARCHAR(139)
    ,ITS_2 DATETIME2(3)
    ,ITS_2_TD VARCHAR(139)
    ,IDBL_2 FLOAT
    ,IDBL_2_TD VARCHAR(139)
    ,ISTR_5 NVARCHAR(380)
    ,ISTR_5_TD VARCHAR(139)
    ,ISTR_6 NVARCHAR(380)
    ,ISTR_6_TD VARCHAR(139)
    ,INUM_3 NUMERIC
    ,INUM_3_TD VARCHAR(139)
    ,ITS_3 DATETIME2(3)
    ,ITS_3_TD VARCHAR(139)
    ,IDBL_3 FLOAT
    ,IDBL_3_TD VARCHAR(139)
    ,ISTR_7 NVARCHAR(380)
    ,ISTR_7_TD VARCHAR(139)
    ,ISTR_8 NVARCHAR(380)
    ,ISTR_8_TD VARCHAR(139)
    ,INUM_4 NUMERIC
    ,INUM_4_TD VARCHAR(139)
    ,ITS_4 DATETIME2(3)
    ,ITS_4_TD VARCHAR(139)
    ,IDBL_4 FLOAT
    ,IDBL_4_TD VARCHAR(139)
    ,STR_1 NVARCHAR(4000)
    ,STR_2 NVARCHAR(4000)
    ,STR_3 NVARCHAR(4000)
    ,STR_4 NVARCHAR(4000)
    ,NUM_1 NUMERIC
    ,TS_1 DATETIME2(3)
    ,DBL_1 FLOAT
    ,STR_5 NVARCHAR(4000)
    ,STR_6 NVARCHAR(4000)
    ,STR_7 NVARCHAR(4000)
    ,STR_8 NVARCHAR(4000)
    ,NUM_2 NUMERIC
    ,TS_2 DATETIME2(3)
    ,DBL_2 FLOAT
    ,STR_9 NVARCHAR(4000)
    ,STR_10 NVARCHAR(4000)
    ,STR_11 NVARCHAR(4000)
    ,STR_12 NVARCHAR(4000)
    ,NUM_3 NUMERIC
    ,TS_3 DATETIME2(3)
    ,DBL_3 FLOAT
    ,STR_13 NVARCHAR(4000)
    ,STR_14 NVARCHAR(4000)
    ,STR_15 NVARCHAR(4000)
    ,STR_16 NVARCHAR(4000)
    ,NUM_4 NUMERIC
    ,TS_4 DATETIME2(3)
    ,DBL_4 FLOAT
    ,STR_17 NVARCHAR(4000)
    ,STR_18 NVARCHAR(4000)
    ,STR_19 NVARCHAR(4000)
    ,STR_20 NVARCHAR(4000)
    ,NUM_5 NUMERIC
    ,TS_5 DATETIME2(3)
    ,DBL_5 FLOAT
    ,STR_21 NVARCHAR(4000)
    ,STR_22 NVARCHAR(4000)
    ,STR_23 NVARCHAR(4000)
    ,STR_24 NVARCHAR(4000)
    ,NUM_6 NUMERIC
    ,TS_6 DATETIME2(3)
    ,DBL_6 FLOAT
    ,STR_25 NVARCHAR(4000)
    ,STR_26 NVARCHAR(4000)
    ,STR_27 NVARCHAR(4000)
    ,STR_28 NVARCHAR(4000)
    ,NUM_7 NUMERIC
    ,TS_7 DATETIME2(3)
    ,DBL_7 FLOAT
    ,STR_29 NVARCHAR(4000)
    ,STR_30 NVARCHAR(4000)
    ,STR_31 NVARCHAR(4000)
    ,STR_32 NVARCHAR(4000)
    ,NUM_8 NUMERIC
    ,TS_8 DATETIME2(3)
    ,DBL_8 FLOAT
    ,STR_33 NVARCHAR(4000)
    ,STR_34 NVARCHAR(4000)
    ,STR_35 NVARCHAR(4000)
    ,STR_36 NVARCHAR(4000)
    ,NUM_9 NUMERIC
    ,TS_9 DATETIME2(3)
    ,DBL_9 FLOAT
    ,STR_37 NVARCHAR(4000)
    ,STR_38 NVARCHAR(4000)
    ,STR_39 NVARCHAR(4000)
    ,STR_40 NVARCHAR(4000)
    ,NUM_10 NUMERIC
    ,TS_10 DATETIME2(3)
    ,DBL_10 FLOAT
    ,STR_41 NVARCHAR(4000)
    ,STR_42 NVARCHAR(4000)
    ,STR_43 NVARCHAR(4000)
    ,STR_44 NVARCHAR(4000)
    ,NUM_11 NUMERIC
    ,TS_11 DATETIME2(3)
    ,DBL_11 FLOAT
    ,STR_45 NVARCHAR(4000)
    ,STR_46 NVARCHAR(4000)
    ,STR_47 NVARCHAR(4000)
    ,STR_48 NVARCHAR(4000)
    ,NUM_12 NUMERIC
    ,TS_12 DATETIME2(3)
    ,DBL_12 FLOAT
    ,STR_49 NVARCHAR(4000)
    ,STR_50 NVARCHAR(4000)
    ,STR_51 NVARCHAR(4000)
    ,STR_52 NVARCHAR(4000)
    ,NUM_13 NUMERIC
    ,TS_13 DATETIME2(3)
    ,DBL_13 FLOAT
    ,STR_53 NVARCHAR(4000)
    ,STR_54 NVARCHAR(4000)
    ,STR_55 NVARCHAR(4000)
    ,STR_56 NVARCHAR(4000)
    ,NUM_14 NUMERIC
    ,TS_14 DATETIME2(3)
    ,DBL_14 FLOAT
    ,STR_57 NVARCHAR(4000)
    ,STR_58 NVARCHAR(4000)
    ,STR_59 NVARCHAR(4000)
    ,STR_60 NVARCHAR(4000)
    ,NUM_15 NUMERIC
    ,TS_15 DATETIME2(3)
    ,DBL_15 FLOAT
    ,STR_61 NVARCHAR(4000)
    ,STR_62 NVARCHAR(4000)
    ,STR_63 NVARCHAR(4000)
    ,STR_64 NVARCHAR(4000)
    ,NUM_16 NUMERIC
    ,TS_16 DATETIME2(3)
    ,DBL_16 FLOAT
    ,STR_65 NVARCHAR(4000)
    ,STR_66 NVARCHAR(4000)
    ,STR_67 NVARCHAR(4000)
    ,STR_68 NVARCHAR(4000)
    ,NUM_17 NUMERIC
    ,TS_17 DATETIME2(3)
    ,DBL_17 FLOAT
    ,STR_69 NVARCHAR(4000)
    ,STR_70 NVARCHAR(4000)
    ,STR_71 NVARCHAR(4000)
    ,STR_72 NVARCHAR(4000)
    ,NUM_18 NUMERIC
    ,TS_18 DATETIME2(3)
    ,DBL_18 FLOAT
    ,STR_73 NVARCHAR(4000)
    ,STR_74 NVARCHAR(4000)
    ,STR_75 NVARCHAR(4000)
    ,STR_76 NVARCHAR(4000)
    ,NUM_19 NUMERIC
    ,TS_19 DATETIME2(3)
    ,DBL_19 FLOAT
    ,STR_77 NVARCHAR(4000)
    ,STR_78 NVARCHAR(4000)
    ,STR_79 NVARCHAR(4000)
    ,STR_80 NVARCHAR(4000)
    ,NUM_20 NUMERIC
    ,TS_20 DATETIME2(3)
    ,DBL_20 FLOAT
    ,STR_81 NVARCHAR(4000)
    ,STR_82 NVARCHAR(4000)
    ,STR_83 NVARCHAR(4000)
    ,STR_84 NVARCHAR(4000)
    ,NUM_21 NUMERIC
    ,TS_21 DATETIME2(3)
    ,DBL_21 FLOAT
    ,STR_85 NVARCHAR(4000)
    ,STR_86 NVARCHAR(4000)
    ,STR_87 NVARCHAR(4000)
    ,STR_88 NVARCHAR(4000)
    ,NUM_22 NUMERIC
    ,TS_22 DATETIME2(3)
    ,DBL_22 FLOAT
    ,STR_89 NVARCHAR(4000)
    ,STR_90 NVARCHAR(4000)
    ,STR_91 NVARCHAR(4000)
    ,STR_92 NVARCHAR(4000)
    ,NUM_23 NUMERIC
    ,TS_23 DATETIME2(3)
    ,DBL_23 FLOAT
    ,STR_93 NVARCHAR(4000)
    ,STR_94 NVARCHAR(4000)
    ,STR_95 NVARCHAR(4000)
    ,STR_96 NVARCHAR(4000)
    ,NUM_24 NUMERIC
    ,TS_24 DATETIME2(3)
    ,DBL_24 FLOAT
    ,STR_97 NVARCHAR(4000)
    ,STR_98 NVARCHAR(4000)
    ,STR_99 NVARCHAR(4000)
    ,STR_100 NVARCHAR(4000)
    ,NUM_25 NUMERIC
    ,TS_25 DATETIME2(3)
    ,DBL_25 FLOAT
    ,STR_101 NVARCHAR(4000)
    ,STR_102 NVARCHAR(4000)
    ,STR_103 NVARCHAR(4000)
    ,STR_104 NVARCHAR(4000)
    ,NUM_26 NUMERIC
    ,TS_26 DATETIME2(3)
    ,DBL_26 FLOAT
    ,STR_105 NVARCHAR(4000)
    ,STR_106 NVARCHAR(4000)
    ,STR_107 NVARCHAR(4000)
    ,STR_108 NVARCHAR(4000)
    ,NUM_27 NUMERIC
    ,TS_27 DATETIME2(3)
    ,DBL_27 FLOAT
    ,STR_109 NVARCHAR(4000)
    ,STR_110 NVARCHAR(4000)
    ,STR_111 NVARCHAR(4000)
    ,STR_112 NVARCHAR(4000)
    ,NUM_28 NUMERIC
    ,TS_28 DATETIME2(3)
    ,DBL_28 FLOAT
    ,STR_113 NVARCHAR(4000)
    ,STR_114 NVARCHAR(4000)
    ,STR_115 NVARCHAR(4000)
    ,STR_116 NVARCHAR(4000)
    ,NUM_29 NUMERIC
    ,TS_29 DATETIME2(3)
    ,DBL_29 FLOAT
    ,STR_117 NVARCHAR(4000)
    ,STR_118 NVARCHAR(4000)
    ,STR_119 NVARCHAR(4000)
    ,STR_120 NVARCHAR(4000)
    ,NUM_30 NUMERIC
    ,TS_30 DATETIME2(3)
    ,DBL_30 FLOAT
    ,STR_121 NVARCHAR(4000)
    ,STR_122 NVARCHAR(4000)
    ,STR_123 NVARCHAR(4000)
    ,STR_124 NVARCHAR(4000)
    ,NUM_31 NUMERIC
    ,TS_31 DATETIME2(3)
    ,DBL_31 FLOAT
    ,STR_125 NVARCHAR(4000)
    ,STR_126 NVARCHAR(4000)
    ,STR_127 NVARCHAR(4000)
    ,STR_128 NVARCHAR(4000)
    ,NUM_32 NUMERIC
    ,TS_32 DATETIME2(3)
    ,DBL_32 FLOAT
    ,CONSTRAINT OBJ_STORE__31_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__31_USTR_UNIQUE_1 ON OBJ_STORE__31 (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_UNUM_UNIQUE_1 ON OBJ_STORE__31 (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_UTS_UNIQUE_1 ON OBJ_STORE__31 (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_UDBL_UNIQUE_1 ON OBJ_STORE__31 (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_USTR_UNIQUE_2 ON OBJ_STORE__31 (USTR_2_TD, USTR_2) WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_UNUM_UNIQUE_2 ON OBJ_STORE__31 (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_UTS_UNIQUE_2 ON OBJ_STORE__31 (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__31_UDBL_UNIQUE_2 ON OBJ_STORE__31 (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_1 ON OBJ_STORE__31 (ISTR_1_TD, ISTR_1)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_2 ON OBJ_STORE__31 (ISTR_2_TD, ISTR_2)
GO
CREATE INDEX OBJ_STORE__31_INUM_INDEX_1 ON OBJ_STORE__31 (INUM_1_TD, INUM_1)
GO
CREATE INDEX OBJ_STORE__31_ITS_INDEX_1 ON OBJ_STORE__31 (ITS_1_TD, ITS_1)
GO
CREATE INDEX OBJ_STORE__31_IDBL_INDEX_1 ON OBJ_STORE__31 (IDBL_1_TD, IDBL_1)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_3 ON OBJ_STORE__31 (ISTR_3_TD, ISTR_3)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_4 ON OBJ_STORE__31 (ISTR_4_TD, ISTR_4)
GO
CREATE INDEX OBJ_STORE__31_INUM_INDEX_2 ON OBJ_STORE__31 (INUM_2_TD, INUM_2)
GO
CREATE INDEX OBJ_STORE__31_ITS_INDEX_2 ON OBJ_STORE__31 (ITS_2_TD, ITS_2)
GO
CREATE INDEX OBJ_STORE__31_IDBL_INDEX_2 ON OBJ_STORE__31 (IDBL_2_TD, IDBL_2)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_5 ON OBJ_STORE__31 (ISTR_5_TD, ISTR_5)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_6 ON OBJ_STORE__31 (ISTR_6_TD, ISTR_6)
GO
CREATE INDEX OBJ_STORE__31_INUM_INDEX_3 ON OBJ_STORE__31 (INUM_3_TD, INUM_3)
GO
CREATE INDEX OBJ_STORE__31_ITS_INDEX_3 ON OBJ_STORE__31 (ITS_3_TD, ITS_3)
GO
CREATE INDEX OBJ_STORE__31_IDBL_INDEX_3 ON OBJ_STORE__31 (IDBL_3_TD, IDBL_3)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_7 ON OBJ_STORE__31 (ISTR_7_TD, ISTR_7)
GO
CREATE INDEX OBJ_STORE__31_ISTR_INDEX_8 ON OBJ_STORE__31 (ISTR_8_TD, ISTR_8)
GO
CREATE INDEX OBJ_STORE__31_INUM_INDEX_4 ON OBJ_STORE__31 (INUM_4_TD, INUM_4)
GO
CREATE INDEX OBJ_STORE__31_ITS_INDEX_4 ON OBJ_STORE__31 (ITS_4_TD, ITS_4)
GO
CREATE INDEX OBJ_STORE__31_IDBL_INDEX_4 ON OBJ_STORE__31 (IDBL_4_TD, IDBL_4)
GO
CREATE INDEX OBJ_STORE__31_CRE_USER_INDEX ON OBJ_STORE__31 (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__MTP
GO

CREATE TABLE OBJ_STORE__MTP
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64),
    USTR_1 NVARCHAR(380),
    USTR_1_TD VARCHAR(139),
    UNUM_1 NUMERIC,
    UNUM_1_TD VARCHAR(139),
    UTS_1 DATETIME2(3),
    UTS_1_TD VARCHAR(139),
    UDBL_1 FLOAT,
    UDBL_1_TD VARCHAR(139),
    USTR_2 NVARCHAR(380),
    USTR_2_TD VARCHAR(139),
    UNUM_2 NUMERIC,
    UNUM_2_TD VARCHAR(139),
    UTS_2 DATETIME2(3),
    UTS_2_TD VARCHAR(139),
    UDBL_2 FLOAT,
    UDBL_2_TD VARCHAR(139),
    ISTR_1 NVARCHAR(380),
    ISTR_1_TD VARCHAR(139),
    ISTR_2 NVARCHAR(380),
    ISTR_2_TD VARCHAR(139),
    INUM_1 NUMERIC,
    INUM_1_TD VARCHAR(139),
    ITS_1 DATETIME2(3),
    ITS_1_TD VARCHAR(139),
    IDBL_1 FLOAT,
    IDBL_1_TD VARCHAR(139),
    ISTR_3 NVARCHAR(380),
    ISTR_3_TD VARCHAR(139),
    ISTR_4 NVARCHAR(380),
    ISTR_4_TD VARCHAR(139),
    INUM_2 NUMERIC,
    INUM_2_TD VARCHAR(139),
    ITS_2 DATETIME2(3),
    ITS_2_TD VARCHAR(139),
    IDBL_2 FLOAT,
    IDBL_2_TD VARCHAR(139),
    ISTR_5 NVARCHAR(380),
    ISTR_5_TD VARCHAR(139),
    ISTR_6 NVARCHAR(380),
    ISTR_6_TD VARCHAR(139),
    INUM_3 NUMERIC,
    INUM_3_TD VARCHAR(139),
    ITS_3 DATETIME2(3),
    ITS_3_TD VARCHAR(139),
    IDBL_3 FLOAT,
    IDBL_3_TD VARCHAR(139),
    ISTR_7 NVARCHAR(380),
    ISTR_7_TD VARCHAR(139),
    ISTR_8 NVARCHAR(380),
    ISTR_8_TD VARCHAR(139),
    INUM_4 NUMERIC,
    INUM_4_TD VARCHAR(139),
    ITS_4 DATETIME2(3),
    ITS_4_TD VARCHAR(139),
    IDBL_4 FLOAT,
    IDBL_4_TD VARCHAR(139),
    STR_1 NVARCHAR(4000),
    STR_2 NVARCHAR(4000),
    STR_3 NVARCHAR(4000),
    STR_4 NVARCHAR(4000),
    NUM_1 NUMERIC,
    TS_1 DATETIME2(3),
    DBL_1 FLOAT,
    STR_5 NVARCHAR(4000),
    STR_6 NVARCHAR(4000),
    STR_7 NVARCHAR(4000),
    STR_8 NVARCHAR(4000),
    NUM_2 NUMERIC,
    TS_2 DATETIME2(3),
    DBL_2 FLOAT,
    STR_9 NVARCHAR(4000),
    STR_10 NVARCHAR(4000),
    STR_11 NVARCHAR(4000),
    STR_12 NVARCHAR(4000),
    NUM_3 NUMERIC,
    TS_3 DATETIME2(3),
    DBL_3 FLOAT,
    STR_13 NVARCHAR(4000),
    STR_14 NVARCHAR(4000),
    STR_15 NVARCHAR(4000),
    STR_16 NVARCHAR(4000),
    NUM_4 NUMERIC,
    TS_4 DATETIME2(3),
    DBL_4 FLOAT,
    STR_17 NVARCHAR(4000),
    STR_18 NVARCHAR(4000),
    STR_19 NVARCHAR(4000),
    STR_20 NVARCHAR(4000),
    NUM_5 NUMERIC,
    TS_5 DATETIME2(3),
    DBL_5 FLOAT,
    STR_21 NVARCHAR(4000),
    STR_22 NVARCHAR(4000),
    STR_23 NVARCHAR(4000),
    STR_24 NVARCHAR(4000),
    NUM_6 NUMERIC,
    TS_6 DATETIME2(3),
    DBL_6 FLOAT,
    STR_25 NVARCHAR(4000),
    STR_26 NVARCHAR(4000),
    STR_27 NVARCHAR(4000),
    STR_28 NVARCHAR(4000),
    NUM_7 NUMERIC,
    TS_7 DATETIME2(3),
    DBL_7 FLOAT,
    STR_29 NVARCHAR(4000),
    STR_30 NVARCHAR(4000),
    STR_31 NVARCHAR(4000),
    STR_32 NVARCHAR(4000),
    NUM_8 NUMERIC,
    TS_8 DATETIME2(3),
    DBL_8 FLOAT,
    STR_33 NVARCHAR(4000),
    STR_34 NVARCHAR(4000),
    STR_35 NVARCHAR(4000),
    STR_36 NVARCHAR(4000),
    NUM_9 NUMERIC,
    TS_9 DATETIME2(3),
    DBL_9 FLOAT,
    STR_37 NVARCHAR(4000),
    STR_38 NVARCHAR(4000),
    STR_39 NVARCHAR(4000),
    STR_40 NVARCHAR(4000),
    NUM_10 NUMERIC,
    TS_10 DATETIME2(3),
    DBL_10 FLOAT,
    STR_41 NVARCHAR(4000),
    STR_42 NVARCHAR(4000),
    STR_43 NVARCHAR(4000),
    STR_44 NVARCHAR(4000),
    NUM_11 NUMERIC,
    TS_11 DATETIME2(3),
    DBL_11 FLOAT,
    STR_45 NVARCHAR(4000),
    STR_46 NVARCHAR(4000),
    STR_47 NVARCHAR(4000),
    STR_48 NVARCHAR(4000),
    NUM_12 NUMERIC,
    TS_12 DATETIME2(3),
    DBL_12 FLOAT,
    STR_49 NVARCHAR(4000),
    STR_50 NVARCHAR(4000),
    STR_51 NVARCHAR(4000),
    STR_52 NVARCHAR(4000),
    NUM_13 NUMERIC,
    TS_13 DATETIME2(3),
    DBL_13 FLOAT,
    STR_53 NVARCHAR(4000),
    STR_54 NVARCHAR(4000),
    STR_55 NVARCHAR(4000),
    STR_56 NVARCHAR(4000),
    NUM_14 NUMERIC,
    TS_14 DATETIME2(3),
    DBL_14 FLOAT,
    STR_57 NVARCHAR(4000),
    STR_58 NVARCHAR(4000),
    STR_59 NVARCHAR(4000),
    STR_60 NVARCHAR(4000),
    NUM_15 NUMERIC,
    TS_15 DATETIME2(3),
    DBL_15 FLOAT,
    STR_61 NVARCHAR(4000),
    STR_62 NVARCHAR(4000),
    STR_63 NVARCHAR(4000),
    STR_64 NVARCHAR(4000),
    NUM_16 NUMERIC,
    TS_16 DATETIME2(3),
    DBL_16 FLOAT,
    STR_65 NVARCHAR(4000),
    STR_66 NVARCHAR(4000),
    STR_67 NVARCHAR(4000),
    STR_68 NVARCHAR(4000),
    NUM_17 NUMERIC,
    TS_17 DATETIME2(3),
    DBL_17 FLOAT,
    STR_69 NVARCHAR(4000),
    STR_70 NVARCHAR(4000),
    STR_71 NVARCHAR(4000),
    STR_72 NVARCHAR(4000),
    NUM_18 NUMERIC,
    TS_18 DATETIME2(3),
    DBL_18 FLOAT,
    STR_73 NVARCHAR(4000),
    STR_74 NVARCHAR(4000),
    STR_75 NVARCHAR(4000),
    STR_76 NVARCHAR(4000),
    NUM_19 NUMERIC,
    TS_19 DATETIME2(3),
    DBL_19 FLOAT,
    STR_77 NVARCHAR(4000),
    STR_78 NVARCHAR(4000),
    STR_79 NVARCHAR(4000),
    STR_80 NVARCHAR(4000),
    NUM_20 NUMERIC,
    TS_20 DATETIME2(3),
    DBL_20 FLOAT,
    STR_81 NVARCHAR(4000),
    STR_82 NVARCHAR(4000),
    STR_83 NVARCHAR(4000),
    STR_84 NVARCHAR(4000),
    NUM_21 NUMERIC,
    TS_21 DATETIME2(3),
    DBL_21 FLOAT,
    STR_85 NVARCHAR(4000),
    STR_86 NVARCHAR(4000),
    STR_87 NVARCHAR(4000),
    STR_88 NVARCHAR(4000),
    NUM_22 NUMERIC,
    TS_22 DATETIME2(3),
    DBL_22 FLOAT,
    STR_89 NVARCHAR(4000),
    STR_90 NVARCHAR(4000),
    STR_91 NVARCHAR(4000),
    STR_92 NVARCHAR(4000),
    NUM_23 NUMERIC,
    TS_23 DATETIME2(3),
    DBL_23 FLOAT,
    STR_93 NVARCHAR(4000),
    STR_94 NVARCHAR(4000),
    STR_95 NVARCHAR(4000),
    STR_96 NVARCHAR(4000),
    NUM_24 NUMERIC,
    TS_24 DATETIME2(3),
    DBL_24 FLOAT,
    STR_97 NVARCHAR(4000),
    STR_98 NVARCHAR(4000),
    STR_99 NVARCHAR(4000),
    STR_100 NVARCHAR(4000),
    NUM_25 NUMERIC,
    TS_25 DATETIME2(3),
    DBL_25 FLOAT,
    STR_101 NVARCHAR(4000),
    STR_102 NVARCHAR(4000),
    STR_103 NVARCHAR(4000),
    STR_104 NVARCHAR(4000),
    NUM_26 NUMERIC,
    TS_26 DATETIME2(3),
    DBL_26 FLOAT,
    STR_105 NVARCHAR(4000),
    STR_106 NVARCHAR(4000),
    STR_107 NVARCHAR(4000),
    STR_108 NVARCHAR(4000),
    NUM_27 NUMERIC,
    TS_27 DATETIME2(3),
    DBL_27 FLOAT,
    STR_109 NVARCHAR(4000),
    STR_110 NVARCHAR(4000),
    STR_111 NVARCHAR(4000),
    STR_112 NVARCHAR(4000),
    NUM_28 NUMERIC,
    TS_28 DATETIME2(3),
    DBL_28 FLOAT,
    STR_113 NVARCHAR(4000),
    STR_114 NVARCHAR(4000),
    STR_115 NVARCHAR(4000),
    STR_116 NVARCHAR(4000),
    NUM_29 NUMERIC,
    TS_29 DATETIME2(3),
    DBL_29 FLOAT,
    STR_117 NVARCHAR(4000),
    STR_118 NVARCHAR(4000),
    STR_119 NVARCHAR(4000),
    STR_120 NVARCHAR(4000),
    NUM_30 NUMERIC,
    TS_30 DATETIME2(3),
    DBL_30 FLOAT,
    STR_121 NVARCHAR(4000),
    STR_122 NVARCHAR(4000),
    STR_123 NVARCHAR(4000),
    STR_124 NVARCHAR(4000),
    NUM_31 NUMERIC,
    TS_31 DATETIME2(3),
    DBL_31 FLOAT,
    STR_125 NVARCHAR(4000),
    STR_126 NVARCHAR(4000),
    STR_127 NVARCHAR(4000),
    STR_128 NVARCHAR(4000),
    NUM_32 NUMERIC,
    TS_32 DATETIME2(3),
    DBL_32 FLOAT,
    CONSTRAINT OBJ_STORE__MTP_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__MTP_USTR_UNIQUE_1 ON OBJ_STORE__MTP (USTR_1_TD, USTR_1) WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_UNUM_UNIQUE_1 ON OBJ_STORE__MTP (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_UTS_UNIQUE_1 ON OBJ_STORE__MTP (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_UDBL_UNIQUE_1 ON OBJ_STORE__MTP (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_USTR_UNIQUE_2 ON OBJ_STORE__MTP (USTR_2_TD, USTR_2)  WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_UNUM_UNIQUE_2 ON OBJ_STORE__MTP (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_UTS_UNIQUE_2 ON OBJ_STORE__MTP (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__MTP_UDBL_UNIQUE_2 ON OBJ_STORE__MTP (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO

CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_1 ON OBJ_STORE__MTP (ISTR_1, ISTR_1_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_2 ON OBJ_STORE__MTP (ISTR_2, ISTR_2_TD)
GO
CREATE INDEX OBJ_STORE__MTP_INUM_INDEX_1 ON OBJ_STORE__MTP (INUM_1, INUM_1_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ITS_INDEX_1 ON OBJ_STORE__MTP (ITS_1, ITS_1_TD)
GO
CREATE INDEX OBJ_STORE__MTP_IDBL_INDEX_1 ON OBJ_STORE__MTP (IDBL_1, IDBL_1_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_3 ON OBJ_STORE__MTP (ISTR_3, ISTR_3_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_4 ON OBJ_STORE__MTP (ISTR_4, ISTR_4_TD)
GO
CREATE INDEX OBJ_STORE__MTP_INUM_INDEX_2 ON OBJ_STORE__MTP (INUM_2, INUM_2_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ITS_INDEX_2 ON OBJ_STORE__MTP (ITS_2, ITS_2_TD)
GO
CREATE INDEX OBJ_STORE__MTP_IDBL_INDEX_2 ON OBJ_STORE__MTP (IDBL_2, IDBL_2_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_5 ON OBJ_STORE__MTP (ISTR_5, ISTR_5_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_6 ON OBJ_STORE__MTP (ISTR_6, ISTR_6_TD)
GO
CREATE INDEX OBJ_STORE__MTP_INUM_INDEX_3 ON OBJ_STORE__MTP (INUM_3, INUM_3_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ITS_INDEX_3 ON OBJ_STORE__MTP (ITS_3, ITS_3_TD)
GO
CREATE INDEX OBJ_STORE__MTP_IDBL_INDEX_3 ON OBJ_STORE__MTP (IDBL_3, IDBL_3_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_7 ON OBJ_STORE__MTP (ISTR_7, ISTR_7_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ISTR_INDEX_8 ON OBJ_STORE__MTP (ISTR_8, ISTR_8_TD)
GO
CREATE INDEX OBJ_STORE__MTP_INUM_INDEX_4 ON OBJ_STORE__MTP (INUM_4, INUM_4_TD)
GO
CREATE INDEX OBJ_STORE__MTP_ITS_INDEX_4 ON OBJ_STORE__MTP (ITS_4, ITS_4_TD)
GO
CREATE INDEX OBJ_STORE__MTP_IDBL_INDEX_4 ON OBJ_STORE__MTP (IDBL_4, IDBL_4_TD)
GO

CREATE INDEX OBJ_STORE__MTP_CRE_USER_INDEX ON OBJ_STORE__MTP (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO

/* drop/create OBJ_STORE */
DROP TABLE OBJ_STORE__USER
GO

CREATE TABLE OBJ_STORE__USER
(
    TENANT_ID NUMERIC(7,0) NOT NULL,
    OBJ_DEF_ID VARCHAR(128) NOT NULL,
    PG_NO NUMERIC(2,0) NOT NULL,
    OBJ_ID VARCHAR(64) NOT NULL,
    OBJ_VER NUMERIC(10,0) DEFAULT 0 NOT NULL,
    OBJ_DEF_VER NUMERIC(10,0),
    STATUS CHAR(1),
    OBJ_NAME NVARCHAR(256),
    OBJ_DESC NVARCHAR(1024),
    CRE_DATE DATETIME2(3),
    UP_DATE DATETIME2(3),
    S_DATE DATETIME2(3),
    E_DATE DATETIME2(3),
    LOCK_USER VARCHAR(64),
    CRE_USER VARCHAR(64),
    UP_USER VARCHAR(64),
    USTR_1 NVARCHAR(380),
    USTR_1_TD VARCHAR(139),
    UNUM_1 NUMERIC,
    UNUM_1_TD VARCHAR(139),
    UTS_1 DATETIME2(3),
    UTS_1_TD VARCHAR(139),
    UDBL_1 FLOAT,
    UDBL_1_TD VARCHAR(139),
    USTR_2 NVARCHAR(380),
    USTR_2_TD VARCHAR(139),
    UNUM_2 NUMERIC,
    UNUM_2_TD VARCHAR(139),
    UTS_2 DATETIME2(3),
    UTS_2_TD VARCHAR(139),
    UDBL_2 FLOAT,
    UDBL_2_TD VARCHAR(139),
    ISTR_1 NVARCHAR(380),
    ISTR_1_TD VARCHAR(139),
    ISTR_2 NVARCHAR(380),
    ISTR_2_TD VARCHAR(139),
    INUM_1 NUMERIC,
    INUM_1_TD VARCHAR(139),
    ITS_1 DATETIME2(3),
    ITS_1_TD VARCHAR(139),
    IDBL_1 FLOAT,
    IDBL_1_TD VARCHAR(139),
    ISTR_3 NVARCHAR(380),
    ISTR_3_TD VARCHAR(139),
    ISTR_4 NVARCHAR(380),
    ISTR_4_TD VARCHAR(139),
    INUM_2 NUMERIC,
    INUM_2_TD VARCHAR(139),
    ITS_2 DATETIME2(3),
    ITS_2_TD VARCHAR(139),
    IDBL_2 FLOAT,
    IDBL_2_TD VARCHAR(139),
    ISTR_5 NVARCHAR(380),
    ISTR_5_TD VARCHAR(139),
    ISTR_6 NVARCHAR(380),
    ISTR_6_TD VARCHAR(139),
    INUM_3 NUMERIC,
    INUM_3_TD VARCHAR(139),
    ITS_3 DATETIME2(3),
    ITS_3_TD VARCHAR(139),
    IDBL_3 FLOAT,
    IDBL_3_TD VARCHAR(139),
    ISTR_7 NVARCHAR(380),
    ISTR_7_TD VARCHAR(139),
    ISTR_8 NVARCHAR(380),
    ISTR_8_TD VARCHAR(139),
    INUM_4 NUMERIC,
    INUM_4_TD VARCHAR(139),
    ITS_4 DATETIME2(3),
    ITS_4_TD VARCHAR(139),
    IDBL_4 FLOAT,
    IDBL_4_TD VARCHAR(139),
    STR_1 NVARCHAR(4000),
    STR_2 NVARCHAR(4000),
    STR_3 NVARCHAR(4000),
    STR_4 NVARCHAR(4000),
    NUM_1 NUMERIC,
    TS_1 DATETIME2(3),
    DBL_1 FLOAT,
    STR_5 NVARCHAR(4000),
    STR_6 NVARCHAR(4000),
    STR_7 NVARCHAR(4000),
    STR_8 NVARCHAR(4000),
    NUM_2 NUMERIC,
    TS_2 DATETIME2(3),
    DBL_2 FLOAT,
    STR_9 NVARCHAR(4000),
    STR_10 NVARCHAR(4000),
    STR_11 NVARCHAR(4000),
    STR_12 NVARCHAR(4000),
    NUM_3 NUMERIC,
    TS_3 DATETIME2(3),
    DBL_3 FLOAT,
    STR_13 NVARCHAR(4000),
    STR_14 NVARCHAR(4000),
    STR_15 NVARCHAR(4000),
    STR_16 NVARCHAR(4000),
    NUM_4 NUMERIC,
    TS_4 DATETIME2(3),
    DBL_4 FLOAT,
    STR_17 NVARCHAR(4000),
    STR_18 NVARCHAR(4000),
    STR_19 NVARCHAR(4000),
    STR_20 NVARCHAR(4000),
    NUM_5 NUMERIC,
    TS_5 DATETIME2(3),
    DBL_5 FLOAT,
    STR_21 NVARCHAR(4000),
    STR_22 NVARCHAR(4000),
    STR_23 NVARCHAR(4000),
    STR_24 NVARCHAR(4000),
    NUM_6 NUMERIC,
    TS_6 DATETIME2(3),
    DBL_6 FLOAT,
    STR_25 NVARCHAR(4000),
    STR_26 NVARCHAR(4000),
    STR_27 NVARCHAR(4000),
    STR_28 NVARCHAR(4000),
    NUM_7 NUMERIC,
    TS_7 DATETIME2(3),
    DBL_7 FLOAT,
    STR_29 NVARCHAR(4000),
    STR_30 NVARCHAR(4000),
    STR_31 NVARCHAR(4000),
    STR_32 NVARCHAR(4000),
    NUM_8 NUMERIC,
    TS_8 DATETIME2(3),
    DBL_8 FLOAT,
    STR_33 NVARCHAR(4000),
    STR_34 NVARCHAR(4000),
    STR_35 NVARCHAR(4000),
    STR_36 NVARCHAR(4000),
    NUM_9 NUMERIC,
    TS_9 DATETIME2(3),
    DBL_9 FLOAT,
    STR_37 NVARCHAR(4000),
    STR_38 NVARCHAR(4000),
    STR_39 NVARCHAR(4000),
    STR_40 NVARCHAR(4000),
    NUM_10 NUMERIC,
    TS_10 DATETIME2(3),
    DBL_10 FLOAT,
    STR_41 NVARCHAR(4000),
    STR_42 NVARCHAR(4000),
    STR_43 NVARCHAR(4000),
    STR_44 NVARCHAR(4000),
    NUM_11 NUMERIC,
    TS_11 DATETIME2(3),
    DBL_11 FLOAT,
    STR_45 NVARCHAR(4000),
    STR_46 NVARCHAR(4000),
    STR_47 NVARCHAR(4000),
    STR_48 NVARCHAR(4000),
    NUM_12 NUMERIC,
    TS_12 DATETIME2(3),
    DBL_12 FLOAT,
    STR_49 NVARCHAR(4000),
    STR_50 NVARCHAR(4000),
    STR_51 NVARCHAR(4000),
    STR_52 NVARCHAR(4000),
    NUM_13 NUMERIC,
    TS_13 DATETIME2(3),
    DBL_13 FLOAT,
    STR_53 NVARCHAR(4000),
    STR_54 NVARCHAR(4000),
    STR_55 NVARCHAR(4000),
    STR_56 NVARCHAR(4000),
    NUM_14 NUMERIC,
    TS_14 DATETIME2(3),
    DBL_14 FLOAT,
    STR_57 NVARCHAR(4000),
    STR_58 NVARCHAR(4000),
    STR_59 NVARCHAR(4000),
    STR_60 NVARCHAR(4000),
    NUM_15 NUMERIC,
    TS_15 DATETIME2(3),
    DBL_15 FLOAT,
    STR_61 NVARCHAR(4000),
    STR_62 NVARCHAR(4000),
    STR_63 NVARCHAR(4000),
    STR_64 NVARCHAR(4000),
    NUM_16 NUMERIC,
    TS_16 DATETIME2(3),
    DBL_16 FLOAT,
    STR_65 NVARCHAR(4000),
    STR_66 NVARCHAR(4000),
    STR_67 NVARCHAR(4000),
    STR_68 NVARCHAR(4000),
    NUM_17 NUMERIC,
    TS_17 DATETIME2(3),
    DBL_17 FLOAT,
    STR_69 NVARCHAR(4000),
    STR_70 NVARCHAR(4000),
    STR_71 NVARCHAR(4000),
    STR_72 NVARCHAR(4000),
    NUM_18 NUMERIC,
    TS_18 DATETIME2(3),
    DBL_18 FLOAT,
    STR_73 NVARCHAR(4000),
    STR_74 NVARCHAR(4000),
    STR_75 NVARCHAR(4000),
    STR_76 NVARCHAR(4000),
    NUM_19 NUMERIC,
    TS_19 DATETIME2(3),
    DBL_19 FLOAT,
    STR_77 NVARCHAR(4000),
    STR_78 NVARCHAR(4000),
    STR_79 NVARCHAR(4000),
    STR_80 NVARCHAR(4000),
    NUM_20 NUMERIC,
    TS_20 DATETIME2(3),
    DBL_20 FLOAT,
    STR_81 NVARCHAR(4000),
    STR_82 NVARCHAR(4000),
    STR_83 NVARCHAR(4000),
    STR_84 NVARCHAR(4000),
    NUM_21 NUMERIC,
    TS_21 DATETIME2(3),
    DBL_21 FLOAT,
    STR_85 NVARCHAR(4000),
    STR_86 NVARCHAR(4000),
    STR_87 NVARCHAR(4000),
    STR_88 NVARCHAR(4000),
    NUM_22 NUMERIC,
    TS_22 DATETIME2(3),
    DBL_22 FLOAT,
    STR_89 NVARCHAR(4000),
    STR_90 NVARCHAR(4000),
    STR_91 NVARCHAR(4000),
    STR_92 NVARCHAR(4000),
    NUM_23 NUMERIC,
    TS_23 DATETIME2(3),
    DBL_23 FLOAT,
    STR_93 NVARCHAR(4000),
    STR_94 NVARCHAR(4000),
    STR_95 NVARCHAR(4000),
    STR_96 NVARCHAR(4000),
    NUM_24 NUMERIC,
    TS_24 DATETIME2(3),
    DBL_24 FLOAT,
    STR_97 NVARCHAR(4000),
    STR_98 NVARCHAR(4000),
    STR_99 NVARCHAR(4000),
    STR_100 NVARCHAR(4000),
    NUM_25 NUMERIC,
    TS_25 DATETIME2(3),
    DBL_25 FLOAT,
    STR_101 NVARCHAR(4000),
    STR_102 NVARCHAR(4000),
    STR_103 NVARCHAR(4000),
    STR_104 NVARCHAR(4000),
    NUM_26 NUMERIC,
    TS_26 DATETIME2(3),
    DBL_26 FLOAT,
    STR_105 NVARCHAR(4000),
    STR_106 NVARCHAR(4000),
    STR_107 NVARCHAR(4000),
    STR_108 NVARCHAR(4000),
    NUM_27 NUMERIC,
    TS_27 DATETIME2(3),
    DBL_27 FLOAT,
    STR_109 NVARCHAR(4000),
    STR_110 NVARCHAR(4000),
    STR_111 NVARCHAR(4000),
    STR_112 NVARCHAR(4000),
    NUM_28 NUMERIC,
    TS_28 DATETIME2(3),
    DBL_28 FLOAT,
    STR_113 NVARCHAR(4000),
    STR_114 NVARCHAR(4000),
    STR_115 NVARCHAR(4000),
    STR_116 NVARCHAR(4000),
    NUM_29 NUMERIC,
    TS_29 DATETIME2(3),
    DBL_29 FLOAT,
    STR_117 NVARCHAR(4000),
    STR_118 NVARCHAR(4000),
    STR_119 NVARCHAR(4000),
    STR_120 NVARCHAR(4000),
    NUM_30 NUMERIC,
    TS_30 DATETIME2(3),
    DBL_30 FLOAT,
    STR_121 NVARCHAR(4000),
    STR_122 NVARCHAR(4000),
    STR_123 NVARCHAR(4000),
    STR_124 NVARCHAR(4000),
    NUM_31 NUMERIC,
    TS_31 DATETIME2(3),
    DBL_31 FLOAT,
    STR_125 NVARCHAR(4000),
    STR_126 NVARCHAR(4000),
    STR_127 NVARCHAR(4000),
    STR_128 NVARCHAR(4000),
    NUM_32 NUMERIC,
    TS_32 DATETIME2(3),
    DBL_32 FLOAT,
    CONSTRAINT OBJ_STORE__USER_PK PRIMARY KEY (OBJ_DEF_ID, TENANT_ID, OBJ_ID, OBJ_VER, PG_NO)
)
GO

CREATE UNIQUE INDEX OBJ_STORE__USER_USTR_UNIQUE_1 ON OBJ_STORE__USER (USTR_1_TD, USTR_1)  WHERE USTR_1_TD IS NOT NULL AND USTR_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_UNUM_UNIQUE_1 ON OBJ_STORE__USER (UNUM_1_TD, UNUM_1) WHERE UNUM_1_TD IS NOT NULL AND UNUM_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_UTS_UNIQUE_1 ON OBJ_STORE__USER (UTS_1_TD, UTS_1) WHERE UTS_1_TD IS NOT NULL AND UTS_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_UDBL_UNIQUE_1 ON OBJ_STORE__USER (UDBL_1_TD, UDBL_1) WHERE UDBL_1_TD IS NOT NULL AND UDBL_1 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_USTR_UNIQUE_2 ON OBJ_STORE__USER (USTR_2_TD, USTR_2)  WHERE USTR_2_TD IS NOT NULL AND USTR_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_UNUM_UNIQUE_2 ON OBJ_STORE__USER (UNUM_2_TD, UNUM_2) WHERE UNUM_2_TD IS NOT NULL AND UNUM_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_UTS_UNIQUE_2 ON OBJ_STORE__USER (UTS_2_TD, UTS_2) WHERE UTS_2_TD IS NOT NULL AND UTS_2 IS NOT NULL
GO
CREATE UNIQUE INDEX OBJ_STORE__USER_UDBL_UNIQUE_2 ON OBJ_STORE__USER (UDBL_2_TD, UDBL_2) WHERE UDBL_2_TD IS NOT NULL AND UDBL_2 IS NOT NULL
GO

CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_1 ON OBJ_STORE__USER (ISTR_1, ISTR_1_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_2 ON OBJ_STORE__USER (ISTR_2, ISTR_2_TD)
GO
CREATE INDEX OBJ_STORE__USER_INUM_INDEX_1 ON OBJ_STORE__USER (INUM_1, INUM_1_TD)
GO
CREATE INDEX OBJ_STORE__USER_ITS_INDEX_1 ON OBJ_STORE__USER (ITS_1, ITS_1_TD)
GO
CREATE INDEX OBJ_STORE__USER_IDBL_INDEX_1 ON OBJ_STORE__USER (IDBL_1, IDBL_1_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_3 ON OBJ_STORE__USER (ISTR_3, ISTR_3_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_4 ON OBJ_STORE__USER (ISTR_4, ISTR_4_TD)
GO
CREATE INDEX OBJ_STORE__USER_INUM_INDEX_2 ON OBJ_STORE__USER (INUM_2, INUM_2_TD)
GO
CREATE INDEX OBJ_STORE__USER_ITS_INDEX_2 ON OBJ_STORE__USER (ITS_2, ITS_2_TD)
GO
CREATE INDEX OBJ_STORE__USER_IDBL_INDEX_2 ON OBJ_STORE__USER (IDBL_2, IDBL_2_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_5 ON OBJ_STORE__USER (ISTR_5, ISTR_5_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_6 ON OBJ_STORE__USER (ISTR_6, ISTR_6_TD)
GO
CREATE INDEX OBJ_STORE__USER_INUM_INDEX_3 ON OBJ_STORE__USER (INUM_3, INUM_3_TD)
GO
CREATE INDEX OBJ_STORE__USER_ITS_INDEX_3 ON OBJ_STORE__USER (ITS_3, ITS_3_TD)
GO
CREATE INDEX OBJ_STORE__USER_IDBL_INDEX_3 ON OBJ_STORE__USER (IDBL_3, IDBL_3_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_7 ON OBJ_STORE__USER (ISTR_7, ISTR_7_TD)
GO
CREATE INDEX OBJ_STORE__USER_ISTR_INDEX_8 ON OBJ_STORE__USER (ISTR_8, ISTR_8_TD)
GO
CREATE INDEX OBJ_STORE__USER_INUM_INDEX_4 ON OBJ_STORE__USER (INUM_4, INUM_4_TD)
GO
CREATE INDEX OBJ_STORE__USER_ITS_INDEX_4 ON OBJ_STORE__USER (ITS_4, ITS_4_TD)
GO
CREATE INDEX OBJ_STORE__USER_IDBL_INDEX_4 ON OBJ_STORE__USER (IDBL_4, IDBL_4_TD)
GO

CREATE INDEX OBJ_STORE__USER_CRE_USER_INDEX ON OBJ_STORE__USER (CRE_USER, OBJ_DEF_ID, TENANT_ID)
GO
